org.encog.neural.pattern
Class SOMPattern
- java.lang.Object
-
- org.encog.neural.pattern.SOMPattern
-
- All Implemented Interfaces:
- NeuralNetworkPattern
public class SOMPattern extends java.lang.Object implements NeuralNetworkPattern
A self organizing map is a neural network pattern with an input and output layer. There is no hidden layer. The winning neuron, which is that neuron with the higest output is the winner, this winning neuron is often used to classify the input into a group.
-
-
Constructor Summary
Constructors Constructor and Description SOMPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddHiddenLayer(int count)Add a hidden layer.voidclear()Clear out any hidden neurons.MLMethodgenerate()Generate the RSOM network.voidsetActivationFunction(ActivationFunction activation)Set the activation function.voidsetInputNeurons(int count)Set the input neuron count.voidsetOutputNeurons(int count)Set the output neuron count.
-
-
-
Method Detail
-
addHiddenLayer
public void addHiddenLayer(int count)
Add a hidden layer. SOM networks do not have hidden layers, so this will throw an error.- Specified by:
addHiddenLayerin interfaceNeuralNetworkPattern- Parameters:
count- The number of hidden neurons.
-
clear
public void clear()
Clear out any hidden neurons.- Specified by:
clearin interfaceNeuralNetworkPattern
-
generate
public MLMethod generate()
Generate the RSOM network.- Specified by:
generatein interfaceNeuralNetworkPattern- Returns:
- The neural network.
-
setActivationFunction
public void setActivationFunction(ActivationFunction activation)
Set the activation function. A SOM uses a linear activation function, so this method throws an error.- Specified by:
setActivationFunctionin interfaceNeuralNetworkPattern- Parameters:
activation- The activation function to use.
-
setInputNeurons
public void setInputNeurons(int count)
Set the input neuron count.- Specified by:
setInputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of neurons.
-
setOutputNeurons
public void setOutputNeurons(int count)
Set the output neuron count.- Specified by:
setOutputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of neurons.
-
-
DMelt 3.0 © DataMelt by jWork.ORG