|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.neural.pattern.BAMPattern
public class BAMPattern
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 | |
---|---|
BAMPattern()
|
Method Summary | |
---|---|
void |
addHiddenLayer(int count)
Unused, a BAM has no hidden layers. |
void |
clear()
Clear any settings on the pattern. |
MLMethod |
generate()
Generate the specified neural network. |
void |
setActivationFunction(ActivationFunction activation)
Not used, the BAM uses a bipoloar activation function. |
void |
setF1Neurons(int count)
Set the F1 neurons. |
void |
setF2Neurons(int count)
Set the output neurons. |
void |
setInputNeurons(int count)
Set the number of input neurons. |
void |
setOutputNeurons(int count)
Set the number of output neurons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BAMPattern()
Method Detail |
---|
public void addHiddenLayer(int count)
addHiddenLayer
in interface NeuralNetworkPattern
count
- Not used.public void clear()
clear
in interface NeuralNetworkPattern
public MLMethod generate()
NeuralNetworkPattern
generate
in interface NeuralNetworkPattern
public void setActivationFunction(ActivationFunction activation)
setActivationFunction
in interface NeuralNetworkPattern
activation
- Not used.public void setF1Neurons(int count)
count
- The number of neurons in the first layer.public void setF2Neurons(int count)
count
- The number of neurons in the second layer.public void setInputNeurons(int count)
setInputNeurons
in interface NeuralNetworkPattern
count
- The number of input neurons.public void setOutputNeurons(int count)
setOutputNeurons
in interface NeuralNetworkPattern
count
- The output neuron count.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |