[R] non-conformable arguments

Thierry Onkelinx thierry.onkelinx at inbo.be
Mon Mar 30 14:26:50 CEST 2015


You should sent us a commented, minimal, self-contained, reproducible code
as the posting guide tells you to do.
Your code is not self-contained. So we can only speculate what when wrong.

ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium

To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey

2015-03-30 14:10 GMT+02:00 Soheila Khodakarim <lkhodakarim op gmail.com>:

> Dear All,
>
> I want to run neural network on my data.
>
> i run these codes:
>
> #load mydata
> dim(mydata)
> # 20 3111
> library(neuralnet)
> fm <- as.formula(paste("resp ~", paste(colnames(mydata)[1:3110],
> collapse="+")))
> out <- neuralnet(fm,data=mydata, hidden = 4, lifesign = "minimal",
> linear.output = FALSE, threshold = 0.1)
> #load testset
> dim(testset)
> # 20 3111
> out.results <- compute(out, testset)
> Error in neurons[[i]] %*% weights[[i]] : non-conformable arguments
>
> what should I do now?
>
> Regards,
> Soheila
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help op r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list