|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.encog.neural.som.training.basic.BestMatchingUnit
public class BestMatchingUnit
The "Best Matching Unit" or BMU is a very important concept in the training for a SOM. The BMU is the output neuron that has weight connections to the input neurons that most closely match the current input vector. This neuron (and its "neighborhood") are the neurons that will receive training. This class also tracks the worst distance (of all BMU's). This gives some indication of how well the network is trained, and thus becomes the "error" of the entire network.
Constructor Summary | |
---|---|
BestMatchingUnit(SOM som)
Construct a BestMatchingUnit class. |
Method Summary | |
---|---|
int |
calculateBMU(MLData input)
Calculate the best matching unit (BMU). |
double |
calculateEuclideanDistance(Matrix matrix,
MLData input,
int outputNeuron)
Calculate the Euclidean distance for the specified output neuron and the input vector. |
double |
getWorstDistance()
|
void |
reset()
Reset the "worst distance" back to a minimum value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BestMatchingUnit(SOM som)
som
- The SOM to evaluate.Method Detail |
---|
public int calculateBMU(MLData input)
input
- The input vector.
public double calculateEuclideanDistance(Matrix matrix, MLData input, int outputNeuron)
matrix
- The matrix to get the weights from.input
- The input vector.outputNeuron
- The neuron we are calculating the distance for.
public double getWorstDistance()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |