org.encog.neural.pattern
Class ElmanPattern
- java.lang.Object
-
- org.encog.neural.pattern.ElmanPattern
-
- All Implemented Interfaces:
- NeuralNetworkPattern
public class ElmanPattern extends java.lang.Object implements NeuralNetworkPattern
This class is used to generate an Elman style recurrent neural network. This network type consists of three regular layers, an input output and hidden layer. There is also a context layer which accepts output from the hidden layer and outputs back to the hidden layer. This makes it a recurrent neural network. The Elman neural network is useful for temporal input data. The specified activation function will be used on all layers. The Elman neural network is similar to the Jordan neural network.
-
-
Constructor Summary
Constructors Constructor and Description ElmanPattern()Create an object to generate Elman neural networks.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddHiddenLayer(int count)Add a hidden layer with the specified number of neurons.voidclear()Clear out any hidden neurons.MLMethodgenerate()Generate the Elman neural network.voidsetActivationFunction(ActivationFunction activation)Set the activation function to use on each of the layers.voidsetInputNeurons(int count)Set the number of input neurons.voidsetOutputNeurons(int count)Set the number of output neurons.
-
-
-
Constructor Detail
-
ElmanPattern
public ElmanPattern()
Create an object to generate Elman neural networks.
-
-
Method Detail
-
addHiddenLayer
public void addHiddenLayer(int count)
Add a hidden layer with the specified number of neurons.- Specified by:
addHiddenLayerin interfaceNeuralNetworkPattern- Parameters:
count- The number of neurons in this hidden layer.
-
clear
public void clear()
Clear out any hidden neurons.- Specified by:
clearin interfaceNeuralNetworkPattern
-
generate
public MLMethod generate()
Generate the Elman neural network.- Specified by:
generatein interfaceNeuralNetworkPattern- Returns:
- The Elman neural network.
-
setActivationFunction
public void setActivationFunction(ActivationFunction activation)
Set the activation function to use on each of the layers.- Specified by:
setActivationFunctionin interfaceNeuralNetworkPattern- Parameters:
activation- The activation function.
-
setInputNeurons
public void setInputNeurons(int count)
Set the number of input neurons.- Specified by:
setInputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- Neuron count.
-
setOutputNeurons
public void setOutputNeurons(int count)
Set the number of output neurons.- Specified by:
setOutputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- Neuron count.
-
-
DMelt 3.0 © DataMelt by jWork.ORG