Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

R caret nnet stop criterion

Tags:

r

r-caret

nnet

I am using the caret package with the nnet method in a classification problem, and i would like to know what is the stop criterion used in nnet to stop the training to avoid over fitting.

I have done some research and i found that in the RSNNS package there is no stop criterion implemented, but it is considered for future work, see it here: https://www.jstatsoft.org/index.php/jss/article/view/v046i07/v46i07.pdf

But for the nnet package i didn't find any information about the stop criterion used or if it does use one. So, my question is. What is the stop criterion used in nnet package?

Thanks!!!

like image 578
Cleidson Alves Avatar asked Oct 31 '22 09:10

Cleidson Alves


1 Answers

The stop criterion used in the nnet package is defined by the abstol and reltol parameters of the nnet() function.

abstol
Stop if the fit criterion falls below abstol, indicating an essentially perfect fit.

reltol 
Stop if the optimizer is unable to reduce the fit criterion by a factor of at least 1 - reltol.

(copied from https://cran.r-project.org/web/packages/nnet/nnet.pdf)

Their default values are: abstol = 1.0e-4; reltol = 1.0e-8

The fit criterion is some kind of error between ground truth and the network output. It is part of the objective function for iterative minimization.

There is a question regarding the fit criterion with a partly answer: https://stats.stackexchange.com/questions/156117/what-is-the-value-of-fitting-criterion-on-the-nnet-package-in-r

like image 62
Robomatix Avatar answered Nov 15 '22 07:11

Robomatix