, 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
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
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
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
4 matches
Mail list logo