public class OutputLayer extends Layer
OutputLayer is
automatically created by FeedForwardNetwork.Network,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
Perceptron |
createPerceptron()
Creates a
Perceptron in this Layer of the
neural network. |
Perceptron |
createPerceptron(Activation activation,
double bias)
Creates a
Perceptron in this Layer with a
specified Activation and bias. |
Perceptron[] |
createPerceptrons(int n)
Creates a number of
Perceptrons in this Layer
of the neural network. |
Perceptron[] |
createPerceptrons(int n,
Activation activation,
double bias)
Creates a number of
Perceptrons in this Layer
with specified activation and bias. |
Node[] |
getNodes()
Return the
Perceptrons in the OutputLayer. |
public Perceptron createPerceptron(Activation activation, double bias)
Perceptron in this Layer with a
specified Activation and bias.activation - The Activation object which specifies the
action function to be used.bias - A double which specifies the initial value
for the bias for this Perceptron.public Perceptron createPerceptron()
Perceptron in this Layer of the
neural network. By default, the created Perceptron uses the
linear activation function and has an initial bias value of zero.public Perceptron[] createPerceptrons(int n)
Perceptrons in this Layer
of the neural network. By default, they will use linear activation and
a zero initial bias.n - An int which specifies the number of
Perceptrons to be created in this layer.Perceptrons.public Perceptron[] createPerceptrons(int n, Activation activation, double bias)
Perceptrons in this Layer
with specified activation and bias.n - An int which specifies the number of
Perceptrons to be created.activation - The Activation object which indicates
the action function to be used.bias - A double which specifies the initial
bias for the Perceptrons.Perceptrons.Copyright © 2020 Rogue Wave Software. All rights reserved.