org.encog.neural.pattern
Class BAMPattern
- java.lang.Object
-
- org.encog.neural.pattern.BAMPattern
-
- All Implemented Interfaces:
- NeuralNetworkPattern
public class BAMPattern extends java.lang.Object implements NeuralNetworkPattern
Construct a Bidirectional Access Memory (BAM) neural network. This neural network type learns to associate one pattern with another. The two patterns do not need to be of the same length. This network has two that are connected to each other. Though they are labeled as input and output layers to Encog, they are both equal, and should simply be thought of as the two layers that make up the net.
-
-
Constructor Summary
Constructors Constructor and Description BAMPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddHiddenLayer(int count)Unused, a BAM has no hidden layers.voidclear()Clear any settings on the pattern.MLMethodgenerate()Generate the specified neural network.voidsetActivationFunction(ActivationFunction activation)Not used, the BAM uses a bipoloar activation function.voidsetF1Neurons(int count)Set the F1 neurons.voidsetF2Neurons(int count)Set the output neurons.voidsetInputNeurons(int count)Set the number of input neurons.voidsetOutputNeurons(int count)Set the number of output neurons.
-
-
-
Method Detail
-
addHiddenLayer
public void addHiddenLayer(int count)
Unused, a BAM has no hidden layers.- Specified by:
addHiddenLayerin interfaceNeuralNetworkPattern- Parameters:
count- Not used.
-
clear
public void clear()
Clear any settings on the pattern.- Specified by:
clearin interfaceNeuralNetworkPattern
-
generate
public MLMethod generate()
Description copied from interface:NeuralNetworkPatternGenerate the specified neural network.- Specified by:
generatein interfaceNeuralNetworkPattern- Returns:
- The generated network.
-
setActivationFunction
public void setActivationFunction(ActivationFunction activation)
Not used, the BAM uses a bipoloar activation function.- Specified by:
setActivationFunctionin interfaceNeuralNetworkPattern- Parameters:
activation- Not used.
-
setF1Neurons
public void setF1Neurons(int count)
Set the F1 neurons. The BAM really does not have an input and output layer, so this is simply setting the number of neurons that are in the first layer.- Parameters:
count- The number of neurons in the first layer.
-
setF2Neurons
public void setF2Neurons(int count)
Set the output neurons. The BAM really does not have an input and output layer, so this is simply setting the number of neurons that are in the second layer.- Parameters:
count- The number of neurons in the second layer.
-
setInputNeurons
public void setInputNeurons(int count)
Set the number of input neurons.- Specified by:
setInputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The number of input neurons.
-
setOutputNeurons
public void setOutputNeurons(int count)
Set the number of output neurons.- Specified by:
setOutputNeuronsin interfaceNeuralNetworkPattern- Parameters:
count- The output neuron count.
-
-
DMelt 3.0 © DataMelt by jWork.ORG