[R] nnet function

Prof Brian Ripley ripley at stats.ox.ac.uk
Tue May 4 17:29:43 CEST 2004


On Tue, 4 May 2004, Tarca Adi Laurentiu wrote:

> Hi I got two questions about the nnet function in R. I would be thankful to 
> have an answer.

I don't think you have consulted the book this R code supports: please do 
so.

> 1) Does the function intrinsically normalize the X and Y matrices before 
> the training, or normalization should be
> done by the user.

The documentation (p.247) answers that.

>   2) I need to understand the $wts matrix. I do imagine that it is a single 
> column transformation of the two
> matrices of weighs (input to hidden Ninputs+1 x Nodes) and hidden to output 
> (Nodes+1 x Noutputs).

There are no `matrices' of weights, just weights along links in the 
network.  See the documentation for all the details.

-- 
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 mailing list