Learn R Programming

BCA (version 0.9-2)

Nnet: 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

Value

A set of components identical to those returned by nnet.

See Also

nnet

Examples

Run this code
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)

Run the code above in your browser using DataLab