Package com.imsl.datamining.neural
Class OutputLayer
java.lang.Object
com.imsl.datamining.neural.Layer
com.imsl.datamining.neural.OutputLayer
- All Implemented Interfaces:
Serializable
Output layer in a neural network. An empty
OutputLayer is
automatically created by FeedForwardNetwork.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCreates aPerceptronin thisLayerof the neural network.createPerceptron(Activation activation, double bias) Creates aPerceptronin thisLayerwith a specifiedActivationandbias.createPerceptrons(int n) Creates a number ofPerceptrons in thisLayerof the neural network.createPerceptrons(int n, Activation activation, double bias) Creates a number ofPerceptrons in thisLayerwith specifiedactivationandbias.Node[]getNodes()Return thePerceptrons in theOutputLayer.
-
Method Details
-
createPerceptron
Creates aPerceptronin thisLayerwith a specifiedActivationandbias.- Parameters:
activation- TheActivationobject which specifies the action function to be used.bias- Adoublewhich specifies the initial value for the bias for thisPerceptron.
-
createPerceptron
Creates aPerceptronin thisLayerof the neural network. By default, the createdPerceptronuses the linear activation function and has an initial bias value of zero. -
createPerceptrons
Creates a number ofPerceptrons in thisLayerof the neural network. By default, they will use linear activation and a zero initial bias.- Parameters:
n- Anintwhich specifies the number ofPerceptrons to be created in thislayer.- Returns:
- An array containing the created
Perceptrons.
-
createPerceptrons
Creates a number ofPerceptrons in thisLayerwith specifiedactivationandbias.- Parameters:
n- Anintwhich specifies the number ofPerceptrons to be created.activation- TheActivationobject which indicates the action function to be used.bias- Adoublewhich specifies the initial bias for thePerceptrons.- Returns:
- An array containing the created
Perceptrons.
-
getNodes
Return thePerceptrons in theOutputLayer.This method overides the method in
Layerto return thePerceptrons in anOutputPerceptronarray.
-