O'Reilly logo

R Data Analysis Cookbook - Second Edition by Kuntal Ganguly

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Exercising greater control over nnet

Use the following additional options:

  • By default, any missing values cause the function to fail. You can specify na.action = na.omit to exclude cases with any missing values.
  • Use skip = TRUE to add skip layer connections from input nodes to the output nodes.
  • Use the rang argument to specify the range for the initial random weights as [-rang, rang]; if the input values are large, select rang such that rang*(max|variable|) is close to 1.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required