[R] ? predict.nnet

Yves Gauvreau
Wed, 02 Aug 2000 11:21:34 -0000

Hi,

I just want to point out a discrepancy between the documentation of predict.nnet
& the function definition.

>?predict.nnet =>

predict.nnet              package:nnet              R Documentation

Predict New Examples by a Trained Neural Net

Description:

     Predict new examples by a trained neural net.

Usage:

     predict.nnet(object, x, type=c("raw","class"))

Arguments:

  object: an object of class `nnet' as  returned by `nnet'.

       x: matrix or data frame of test examples. A vector is considered
          to be a row vector comprising a single case.

******************************************
>predict.nnet =>

predict.nnet <- function(object, newdata,
type=c("raw","class"), ...)
{
  if(!inherits(object, "nnet")) stop("object not of class
nnet")
...

This is on

platform Windows
arch     x86
os       Win32
system   x86, Win32
status
major    1
minor    1.0
year     2000
month    June
day      15
language R

and the nnet file is dated 7/19/00
********************************************

No offence intended.

Regards

Yves Gauvreau

-------------- next part --------------
An HTML attachment was scrubbed...