|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.encog.neural.networks.training.competitive.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(CompetitiveTraining training)
Construct a BestMatchingUnit class. |
|
| Method Summary | |
|---|---|
int |
calculateBMU(Synapse synapse,
NeuralData input)
Calculate the best matching unit (BMU). |
double |
calculateEuclideanDistance(Synapse synapse,
NeuralData 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(CompetitiveTraining training)
training - The parent class.| Method Detail |
|---|
public int calculateBMU(Synapse synapse,
NeuralData input)
synapse - The synapse to calculate for.input - The input vector.
public double calculateEuclideanDistance(Synapse synapse,
NeuralData input,
int outputNeuron)
synapse - The synapse 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 | |||||||||