Package com.imsl.datamining.neural
Class HiddenLayer
java.lang.Object
com.imsl.datamining.neural.Layer
com.imsl.datamining.neural.HiddenLayer
- All Implemented Interfaces:
Serializable
Hidden layer in a neural network. This is created by a factory method in
Network.-
Method Summary
Modifier and TypeMethodDescriptionCreates aPerceptronin thisLayerof the neural network.createPerceptron(Activation activation, double bias) Creates aPerceptronin thisLayerwith a specified activation function and bias.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 the specified bias.
-
Method Details
-
createPerceptron
Creates aPerceptronin thisLayerwith a specified activation function and bias.- Parameters:
activation- TheActivationobject which specifies the activation function to be used.bias- Adoublewhich specifies the initial value for the bias weight.
-
createPerceptron
Creates aPerceptronin thisLayerof the neural network. The createdPerceptronuses the logistic activation function and has an initial bias value of zero. -
createPerceptrons
Creates a number ofPerceptrons in thisLayerof the neural network. The createdPerceptrons use the logistic activation function and have an initial bias value of zero.- Parameters:
n- Anintwhich specifies the number ofPerceptronsto be created.- Returns:
- An array containing the created
Perceptrons.
-
createPerceptrons
Creates a number ofPerceptrons in thisLayerwith the specified bias.- Parameters:
n- Anintwhich specifies the number of Perceptrons to be created.activation- TheActivationobject which specifies the action function to be used.bias- Adoublecontaining the initial value to be applied as the bias values for thePerceptrons.- Returns:
- An array containing the created
Perceptrons.
-