org.encog.neural.bam
public class BAM extends BasicML
Constructor and Description |
---|
BAM()
Default constructor, used mainly for persistence.
|
BAM(int theF1Count,
int theF2Count)
Construct the BAM network.
|
Modifier and Type | Method and Description |
---|---|
void |
addPattern(MLData inputPattern,
MLData outputPattern)
Add a pattern to the neural network.
|
void |
clear()
Clear any connection weights.
|
MLData |
compute(MLData input)
Setup the network logic, read parameters from the network.
|
NeuralDataMapping |
compute(NeuralDataMapping input)
Compute the network for the specified input.
|
int |
getF1Count() |
int |
getF2Count() |
Matrix |
getWeightsF1toF2() |
Matrix |
getWeightsF2toF1() |
void |
setF1Count(int i)
Set the F1 neuron count.
|
void |
setF2Count(int i)
Set the F2 neuron count.
|
void |
setWeightsF1toF2(Matrix matrix)
Set the weights for F1 to F2.
|
void |
setWeightsF2toF1(Matrix matrix)
Set the weights for F2 to F1.
|
void |
updateProperties()
Update any objeccts when a property changes.
|
getProperties, getPropertyDouble, getPropertyLong, getPropertyString, setProperty, setProperty, setProperty
public BAM()
public BAM(int theF1Count, int theF2Count)
theF1Count
- The F1 count.theF2Count
- The F2 count.public void addPattern(MLData inputPattern, MLData outputPattern)
inputPattern
- The input pattern.outputPattern
- The output pattern(for this input).public void clear()
public MLData compute(MLData input)
input
- NOT USEDpublic NeuralDataMapping compute(NeuralDataMapping input)
input
- The input to the network.public int getF1Count()
public int getF2Count()
public Matrix getWeightsF1toF2()
public Matrix getWeightsF2toF1()
public void setF1Count(int i)
i
- The count.public void setF2Count(int i)
i
- The count.public void setWeightsF1toF2(Matrix matrix)
matrix
- The weight matrix.public void setWeightsF2toF1(Matrix matrix)
matrix
- The weight matrix.public void updateProperties()
updateProperties
in interface MLProperties
updateProperties
in class BasicML
Copyright © 2014. All Rights Reserved.