|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.neural.pattern.HopfieldPattern
public class HopfieldPattern
Create a Hopfield pattern. A Hopfield neural network has a single layer that functions both as the input and output layers. There are no hidden layers. Hopfield networks are used for basic pattern recognition. When a Hopfield network recognizes a pattern, it "echos" that pattern on the output.
Constructor Summary | |
---|---|
HopfieldPattern()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HopfieldPattern()
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |