neural network in R

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

neural network in R

azam jaafari
 Hello everybody
 
I try to fit a neural network on my data by using package 'neuralnet' or 'nnet'.
I did it several times but I got an unexpected answer,
 
this is my code (num.obs=100):
(
library('nnet')

y<-data.frame(data$CU) (y is cu concentration)
x<-data.frame(data$mrvbf,data$plcurvature,data$insol)
mod1<-nnet(x,y,size=3,linout=T)
 
)
when I write: mod1$fitted.values, it is same for all of 100 y.
e.g.
1  832.77
2  832.77
3  832.77
.
.
.
100 832.77
 
I don't know where is the problem?
Please help
 
Thanks alot
        [[alternative HTML version deleted]]


______________________________________________
[hidden email] mailing list
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.