public class OutputLayer extends Layer
OutputLayer
is
automatically created by FeedForwardNetwork
.Network
,
Serialized FormModifier 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
Perceptron s in this Layer
of the neural network. |
Perceptron[] |
createPerceptrons(int n,
Activation activation,
double bias)
Creates a number of
Perceptron s in this Layer
with specified activation and bias . |
Node[] |
getNodes()
Return the
Perceptron s 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)
Perceptron
s 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
Perceptron
s to be created in this layer
.Perceptron
s.public Perceptron[] createPerceptrons(int n, Activation activation, double bias)
Perceptron
s in this Layer
with specified activation
and bias
.n
- An int
which specifies the number of
Perceptron
s 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 Perceptron
s.Perceptron
s.Copyright © 2020 Rogue Wave Software. All rights reserved.