Skip to content
Prev 385526 / 398503 Next

Odd Results when generating predictions with nnet function

The problem seems to be the fit rather than the predictions. Looks like nnet is happier with data between 0 and 1, witness

Fit <- nnet(y/max(y) ~ x, a, size = 5, maxit = 1000, lineout = T, decay = 0.001)
plot(y/max(y)~x,a)
lines(fitted(Fit)~x,a)