|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.neural.pattern.FeedForwardPattern
public class FeedForwardPattern
Used to create feedforward neural networks. A feedforward network has an input and output layers separated by zero or more hidden layers. The feedforward neural network is one of the most common neural network patterns.
Constructor Summary | |
---|---|
FeedForwardPattern()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeedForwardPattern()
Method Detail |
---|
public void addHiddenLayer(int count)
addHiddenLayer
in interface NeuralNetworkPattern
count
- The number of neurons to add.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.public void setInputNeurons(int count)
setInputNeurons
in interface NeuralNetworkPattern
count
- Neuron count.public void setOutputNeurons(int count)
setOutputNeurons
in interface NeuralNetworkPattern
count
- Neuron count.public ActivationFunction getActivationOutput()
public void setActivationOutput(ActivationFunction activationOutput)
activationOutput
- the activationOutput to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |