|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.layers.BasicLayer
org.encog.neural.networks.layers.HopfieldLayer
public class HopfieldLayer
HopfieldLayer: This class implements a Hopfield neural network. A Hopfield neural network is fully connected and consists of a single layer. Hopfield neural networks are usually used for pattern recognition.
| Constructor Summary | |
|---|---|
HopfieldLayer(int size)
Construct a hopfield layer of the specified size. |
|
| Method Summary | |
|---|---|
NeuralData |
compute(NeuralData pattern)
Present a pattern to the neural network and receive the result. |
Persistor |
createPersistor()
Create a persistor for this layer. |
BiPolarNeuralData |
getFire()
Get the output array from the last time that the output of this layer was calculated. |
void |
setNeuronCount(int count)
Set the neuron count for this layer. |
| Methods inherited from class org.encog.neural.networks.layers.BasicLayer |
|---|
getDescription, getFire, getMatrix, getMatrixSize, getName, getNeuronCount, getNext, getPrevious, hasMatrix, isHidden, isInput, isOutput, reset, setDescription, setFire, setFire, setMatrix, setName, setNext, setPrevious |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.encog.neural.persist.EncogPersistedObject |
|---|
getDescription, getName, setDescription, setName |
| Constructor Detail |
|---|
public HopfieldLayer(int size)
size - The number of neurons in this layer.| Method Detail |
|---|
public NeuralData compute(NeuralData pattern)
compute in interface Layercompute in class BasicLayerpattern - The pattern to be presented to the neural network.
public Persistor createPersistor()
createPersistor in interface EncogPersistedObjectcreatePersistor in class BasicLayerpublic BiPolarNeuralData getFire()
BasicLayer
getFire in interface LayergetFire in class BasicLayerpublic void setNeuronCount(int count)
setNeuronCount in class BasicLayercount - The neuron count.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||