org.encog.neural.pattern
public class HopfieldPattern extends Object implements NeuralNetworkPattern
Constructor and Description |
---|
HopfieldPattern() |
Modifier and Type | Method and Description |
---|---|
void |
addHiddenLayer(int count)
Add a hidden layer.
|
void |
clear()
Nothing to clear.
|
MLMethod |
generate()
Generate the Hopfield neural network.
|
void |
setActivationFunction(ActivationFunction activation)
Set the activation function to use.
|
void |
setInputNeurons(int count)
Set the number of input neurons, this must match the output neurons.
|
void |
setOutputNeurons(int count)
Set the number of output neurons, should not be used with a hopfield
neural network, because the number of input neurons defines the number of
output neurons.
|
public void addHiddenLayer(int count)
addHiddenLayer
in interface NeuralNetworkPattern
count
- The number of neurons.public void clear()
clear
in interface NeuralNetworkPattern
public MLMethod generate()
generate
in interface NeuralNetworkPattern
public void setActivationFunction(ActivationFunction activation)
setActivationFunction
in interface NeuralNetworkPattern
activation
- The activation function to use.public void setInputNeurons(int count)
setInputNeurons
in interface NeuralNetworkPattern
count
- The number of neurons.public void setOutputNeurons(int count)
setOutputNeurons
in interface NeuralNetworkPattern
count
- The number of neurons.Copyright © 2014. All Rights Reserved.