[R] How to get unique solution from nnet function
Dieter Menne
dieter.menne at menne-biomed.de
Tue Dec 30 10:25:57 CET 2008
Utkarsh Singhal <utkarshs <at> ambaresearch.com> writes:
> I am using nnet function of nnet package to fit neural networks. Now I want to
get a unique solution every time
> I run the function for the same data. If I give rang=0, it solves my problem
but I am not sure whether I am doing
> the right thing. Any comments are welcome.
Use set.seed(put your favorite number here).
Dieter
More information about the R-help
mailing list