|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.encog.neural.networks.training.som.TrainSelfOrganizingMap
public class TrainSelfOrganizingMap
TrainSelfOrganizingMap: Implements an unsupervised training algorithm for use with a Self Organizing Map.
| Nested Class Summary | |
|---|---|
static class |
TrainSelfOrganizingMap.LearningMethod
The learning method, either additive or subtractive. |
| Field Summary | |
|---|---|
static double |
DEFAULT_REDUCTION
The default reduction to use. |
static double |
MIN_LEARNRATE_FOR_REDUCTION
The minimum learning rate for reduction to be applied. |
| Constructor Summary | |
|---|---|
TrainSelfOrganizingMap(BasicNetwork network,
NeuralDataSet train,
TrainSelfOrganizingMap.LearningMethod learnMethod,
double learnRate)
Construct the trainer for a self organizing map. |
|
| Method Summary | |
|---|---|
protected void |
adjustWeights()
Adjust the weights and allow the network to learn. |
void |
evaluateErrors()
Evaludate the current error level of the network. |
protected void |
forceWin()
Force a win, if no neuron won. |
double |
getBestError()
Get the best error so far. |
double |
getTotalError()
Get the error for this iteration. |
void |
initialize()
Called to initialize the SOM. |
void |
iteration()
This method is called for each training iteration. |
protected void |
normalizeWeight(Matrix matrix,
int row)
Normalize the specified row in the weight matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final double DEFAULT_REDUCTION
public static final double MIN_LEARNRATE_FOR_REDUCTION
| Constructor Detail |
|---|
public TrainSelfOrganizingMap(BasicNetwork network,
NeuralDataSet train,
TrainSelfOrganizingMap.LearningMethod learnMethod,
double learnRate)
network - The network to train.train - The training method.learnMethod - The learning method.learnRate - The learning rate.| Method Detail |
|---|
protected void adjustWeights()
public void evaluateErrors()
protected void forceWin()
public double getBestError()
public double getTotalError()
public void initialize()
public void iteration()
protected void normalizeWeight(Matrix matrix,
int row)
matrix - The weight matrix.row - The row to normalize.
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||