org.encog.neural.pattern
Class ADALINEPattern
- java.lang.Object
-
- org.encog.neural.pattern.ADALINEPattern
-
- All Implemented Interfaces:
- NeuralNetworkPattern
public class ADALINEPattern extends java.lang.Object implements NeuralNetworkPattern
Construct an ADALINE neural network.
-
-
Constructor Summary
Constructors Constructor and Description ADALINEPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddHiddenLayer(int count)Not used, the ADALINE has no hidden layers, this will throw an error.voidclear()Clear out any parameters.MLMethodgenerate()Generate the network.voidsetActivationFunction(ActivationFunction activation)Not used, ADALINE does not use custom activation functions.voidsetInputNeurons(int count)Set the input neurons.voidsetOutputNeurons(int count)Set the output neurons.
-
-
-
Method Detail
-
addHiddenLayer
public void addHiddenLayer(int count)
Not used, the ADALINE has no hidden layers, this will throw an error.- Specified by:
addHiddenLayerin interfaceNeuralNetworkPattern- Parameters:
count- The neuron count.
-
clear
public void clear()
Clear out any parameters.- Specified by:
clearin interfaceNeuralNetworkPattern
-
generate
public MLMethod generate()
Generate the network.- Specified by:
generatein interfaceNeuralNetworkPattern- Returns:
- The generated network.
-
setActivationFunction
public void setActivationFunction(ActivationFunction activation)
Not used, ADALINE does not use custom activation functions.- Specified by:
setActivationFunctionin interfaceNeuralNetworkPattern- Parameters:
activation- Not used.
-
setInputNeurons
public void setInputNeurons(int count)
Set the input neurons.- Specified by:
setInputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of neurons in the input layer.
-
setOutputNeurons
public void setOutputNeurons(int count)
Set the output neurons.- Specified by:
setOutputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of neurons in the output layer.
-
-
DMelt 3.0 © DataMelt by jWork.ORG