Re: [R] train nnet

From: Max Kuhn <mxkuhn_at_gmail.com>
Date: Fri, 14 Dec 2007 11:14:07 -0500

On Dec 14, 2007 10:52 AM, G Ilhamto <gilhamto_at_gmail.com> wrote:
> Hi R-helpers,
>
> Can some one tell me how to train 'mynn' of this type?:
> mynn <- nnet(y ~ x1 + ..+ x8, data = lgist, size = 2, rang = 0.1,
> decay = 5e-4, maxit = 200)
>

nnet will estimate model parameters for the model that you have specified.

If you want to understand what parameters (e.g. size, decay) should be used, the train function in the caret package uses a variety of resampling methods to help pick those parameters (and will refit the model based on that). There are similar functions in other packages (like e1071).

Install the caret package and use vignette("caretTrain") to see the details.

-- 

Max

______________________________________________
R-help_at_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.
Received on Fri 14 Dec 2007 - 16:16:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 14 Dec 2007 - 17:30:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.