Last data update: 2014.03.03

R: Neural Networks Using Multiple Starting Weights
NnetR Documentation

Neural Networks Using Multiple Starting Weights

Description

Estimates a feed forward neural network using multiple intial starting weight vectors using the nnet function, and selects as the final model the one that minimizes the criterion function. This function is designed to be used with the Rcmdrma package. The function nnSub implements subsetting in a way more analogous to other R fitting functions.

Usage

Nnet(formula, data, decay, size, subset = "")

nnSub(data, subset)

Arguments

formula

The formula to be used by nnet.

data

The dataframe to be used in the estimation.

decay

The decay parameter to be used by nnet.

size

The number of nodes in the hidden layer.

subset

A subseting expression (given as a quoted character string) for the estimation data frame.

Value

A set of components identical to those returned by nnet.

Author(s)

Dan Putler

See Also

nnet

Examples

  data(iris3)
  irisDat <- data.frame(rbind(iris3[,,1], iris3[,,2], iris3[,,3]), 
    species = as.factor(c(rep("s",50), rep("c",50), rep("v",50))))
  ir.nn2 <- Nnet(species ~ ., irisDat, 0.2, 2)

Results


R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> library(RcmdrPlugin.BCA)
Error in library(RcmdrPlugin.BCA) : 
  there is no package called 'RcmdrPlugin.BCA'
Execution halted