Re: [R] Issues with nnet.default for regression/classification

2010-11-29 Thread Jude Ryan
, 2010 10:37 AM To: Jude Ryan; R-help@r-project.org Subject: Re: [R] Issues with nnet.default for regression/classification On 29/11/10 11:57:31, Jude Ryan wrote: >Hi Georg, > > >The documentation (?nnet) says that y should be a matrix or data frame, >but in your case it is

Re: [R] Issues with nnet.default for regression/classification

2010-11-29 Thread Georg Ruß
On 29/11/10 11:57:31, Jude Ryan wrote: >Hi Georg, > > >The documentation (?nnet) says that y should be a matrix or data frame, >but in your case it is a vector. This is most likely the problem, if >you do not have other data issues going on. Convert y to a matrix (or >data frame

Re: [R] Issues with nnet.default for regression/classification

2010-11-29 Thread Jude Ryan
Hi Georg, The documentation (?nnet) says that y should be a matrix or data frame, but in your case it is a vector. This is most likely the problem, if you do not have other data issues going on. Convert y to a matrix (or data frame) using 'as.matrix' and see if this solves your problem. Library

[R] Issues with nnet.default for regression/classification

2010-11-26 Thread Georg Ruß
Hi, I'm currently trying desperately to get the nnet function for training a neural network (with one hidden layer) to perform a regression task. So I run it like the following: trainednet <- nnet(x=traindata, y=trainresponse, size = 30, linout = TRUE, maxit=1000) (where x is a matrix and y a n