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

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to