Learn R Programming

RSNNS (version 0.3-1)

SnnsRObject$createNet: Create a layered network.

Description

Create a layered network.

Usage

## S3 method for class 'SnnsR':
createNet(unitsPerLayer, fullyConnectedFeedForward = TRUE)

Arguments

unitsPerLayer
a vector of integers that represents the number of units in each layer, including input and output layer
fullyConnectedFeedForward
if TRUE, the network is fully connected as a feed-forward network. If FALSE, no connections are created

Examples

Run this code
SnnsRObject$createNet(c(2,2), FALSE)
SnnsRObject$createNet(c(8,5,5,2), TRUE)

Run the code above in your browser using DataLab