[R] Neural Net Validation Sub Set
Prof Brian Ripley
ripley at stats.ox.ac.uk
Mon Aug 2 08:37:47 CEST 2004
On Sun, 1 Aug 2004, Matthew Oliver wrote:
> Dear R users,
> I have been playing with the nnet and predict.nnet functions and have two questions.
> 1) Is it possible to specify a validation set as well as a training set
> in the nnet function before using predict.nnet to test the nnet object
> against new data?
No, as nnet just trains. What would the validation set be for?
(Validation is testing a fitted model against new data.)
> 2) Is it possible to specify more than one layer of neurons?
Yes. nnet is a wrapper for other functions, and see how it constructs a
net -- the construction is general.
Brian D. Ripley, ripley at stats.ox.ac.uk
Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel: +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UK Fax: +44 1865 272595
More information about the R-help