org.encog.neural.pattern
public class ADALINEPattern extends Object implements NeuralNetworkPattern
Constructor and Description |
---|
ADALINEPattern() |
Modifier and Type | Method and Description |
---|---|
void |
addHiddenLayer(int count)
Not used, the ADALINE has no hidden layers, this will throw an error.
|
void |
clear()
Clear out any parameters.
|
MLMethod |
generate()
Generate the network.
|
void |
setActivationFunction(ActivationFunction activation)
Not used, ADALINE does not use custom activation functions.
|
void |
setInputNeurons(int count)
Set the input neurons.
|
void |
setOutputNeurons(int count)
Set the output neurons.
|
public void addHiddenLayer(int count)
addHiddenLayer
in interface NeuralNetworkPattern
count
- The neuron count.public void clear()
clear
in interface NeuralNetworkPattern
public MLMethod generate()
generate
in interface NeuralNetworkPattern
public void setActivationFunction(ActivationFunction activation)
setActivationFunction
in interface NeuralNetworkPattern
activation
- Not used.public void setInputNeurons(int count)
setInputNeurons
in interface NeuralNetworkPattern
count
- The number of neurons in the input layer.public void setOutputNeurons(int count)
setOutputNeurons
in interface NeuralNetworkPattern
count
- The number of neurons in the output layer.Copyright © 2014. All Rights Reserved.