topepo / caret

caret (Classification And Regression Training) R package that contains misc functions for training and plotting classification and regression models
http://topepo.github.io/caret/index.html
1.6k stars 635 forks source link

nnet / regression #1362

Open bpuladi opened 2 months ago

bpuladi commented 2 months ago

I have now noticed in two independent projects with two independent developers that the RSME values in nnet for regression tasks (not classification) are significantly higher than, for example, a linear regression or the direct implementation in the nnet package. Something seems to be going wrong, but I have not yet found the cause.

bpuladi commented 1 month ago

I found the reason: https://github.com/topepo/caret/pull/1364

In regression linout has to be set to TRUE, while for classificaiton to FALSE

Someone should also check avNNet and pcaNNet