[R] Predict.nnet ?

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Oct 25 08:17:33 CEST 2000

On Tue, 24 Oct 2000, Yves Gauvreau wrote:

> Hi,
> I have a problem with predict.nnet when I try to use it. It crashes R with a
> memory access violation.

It should tell you in which DLL, which would help.

> platform Windows
> arch     x86
> os       Win32
> system   x86, Win32
> status
> major    1
> minor    1.1
> year     2000
> month    August
> day      15
> language R
> I admit the data set is quite large ~ [3000, 101] and its a 3 class problem.
> I know that it works fine when there is a single target. I wonder if what
> I'm doing is wrong or if could be a bug of some kind?

Not really much there to go on, I'm afraid.  You do have the latest version
of the VR bundle?  (9.2-1: package.description("nnet")$Version will tell
you).  There was an R-related memory-management problem on a few platforms
(not Solaris, yes on Linux PPC, seen once on Linux i386, in nnet not
predict.nnet) in the immediately previous release (6.1-9, perhaps also

Certainly you should be able to do this, and the scripts in the bundle
do an example with three output and predicting to a large set.
As a workaround, does predicting to a smaller set of observations help?
You can then build up the big prediction in pieces.

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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list