org.encog.neural.pattern
public class ElmanPattern extends Object implements NeuralNetworkPattern
| Constructor and Description |
|---|
ElmanPattern()
Create an object to generate Elman neural networks.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHiddenLayer(int count)
Add a hidden layer with the specified number of neurons.
|
void |
clear()
Clear out any hidden neurons.
|
MLMethod |
generate()
Generate the Elman neural network.
|
void |
setActivationFunction(ActivationFunction activation)
Set the activation function to use on each of the layers.
|
void |
setInputNeurons(int count)
Set the number of input neurons.
|
void |
setOutputNeurons(int count)
Set the number of output neurons.
|
public ElmanPattern()
public void addHiddenLayer(int count)
addHiddenLayer in interface NeuralNetworkPatterncount - The number of neurons in this hidden layer.public void clear()
clear in interface NeuralNetworkPatternpublic MLMethod generate()
generate in interface NeuralNetworkPatternpublic void setActivationFunction(ActivationFunction activation)
setActivationFunction in interface NeuralNetworkPatternactivation - The activation function.public void setInputNeurons(int count)
setInputNeurons in interface NeuralNetworkPatterncount - Neuron count.public void setOutputNeurons(int count)
setOutputNeurons in interface NeuralNetworkPatterncount - Neuron count.Copyright © 2014. All Rights Reserved.