org.encog.neural.pattern
public class FeedForwardPattern extends Object implements NeuralNetworkPattern
| Constructor and Description |
|---|
FeedForwardPattern() |
| 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 feedforward neural network.
|
ActivationFunction |
getActivationOutput() |
void |
setActivationFunction(ActivationFunction activation)
Set the activation function to use on each of the layers.
|
void |
setActivationOutput(ActivationFunction activationOutput) |
void |
setInputNeurons(int count)
Set the number of input neurons.
|
void |
setOutputNeurons(int count)
Set the number of output neurons.
|
public void addHiddenLayer(int count)
addHiddenLayer in interface NeuralNetworkPatterncount - The number of neurons to add.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.public ActivationFunction getActivationOutput()
public void setActivationOutput(ActivationFunction activationOutput)
activationOutput - the activationOutput to setCopyright © 2014. All Rights Reserved.