Displaying 1 result from an estimated 1 matches for "trainneuron".
Did you mean:
trainneurons
2009 Jul 23
1
Activation Functions in Package Neural
...vation function. If someone has a suggestion, please advise.
The goal of the network is to properly classify a number as positive or
negative. Simple 1-layer network with a single neuron in each layer.
Rcode:
trainInput <- matrix(rnorm(10))
trainAnswers <- ifelse(trainInput <0, -1, 1)
trainNeurons <- 1
trainingData <- mlptrain(inp=trainInput, neurons=trainNeurons,
out=trainAnswers, it=1000)
## To call this network, we can see how it works on a set of known positive
and negative values
testInput <- matrix(-2:2)
mlp(testInput, trainingData$weight, trainingData$dist, trainingData$...