org.encog.neural.pattern
public class JordanPattern extends Object implements NeuralNetworkPattern
Constructor and Description |
---|
JordanPattern()
Construct an object to create a Jordan type neural network.
|
Modifier and Type | Method and Description |
---|---|
void |
addHiddenLayer(int count)
Add a hidden layer, there should be only one.
|
void |
clear()
Clear out any hidden neurons.
|
MLMethod |
generate()
Generate a Jordan 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 JordanPattern()
public void addHiddenLayer(int count)
addHiddenLayer
in interface NeuralNetworkPattern
count
- The number of neurons in this hidden layer.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.Copyright © 2014. All Rights Reserved.