|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.htwdd.rosenkoenig.neuro.net.training.KohonenTrainer
public class KohonenTrainer
Use this class to train a Kohonen map using a set of training patterns. KohonenTrainer
performs unsupervised learning, which means the pattern is presented to the net and the weights
are adjusted without taking care of a desired output.
KohonenTrainer does not use the class Pattern to define its
training patterns, Kohonen training patterns are represented by a simple array of double values.
This simple form of training patterns is sufficient because KohonenTrainer performs
unsupervised training.
The default learning parameters are:
| Field Summary | |
|---|---|
private int |
learningCycles
The number of learning cycles to run. |
private double |
learningRate
|
private org.apache.log4j.Logger |
log
|
private KohonenNet |
net
The net trained by this KohonenTrainer. |
private java.util.ArrayList<double[]> |
patterns
The set of training patterns. |
| Constructor Summary | |
|---|---|
KohonenTrainer(KohonenNet net)
Creates and initializes a new instance of KohonenTrainer. |
|
| Method Summary | |
|---|---|
int |
getLearningCycles()
Getter of the property learningCycles |
double |
getLearningRate()
Getter of the property learningRate |
KohonenNet |
getNet()
Getter of the property net |
java.util.ArrayList<double[]> |
getPatterns()
Getter of the property patterns |
void |
setLearningCycles(int learningCycles)
Setter of the property learningCycles |
void |
setLearningRate(double learningRate)
Setter of the property learningRate |
void |
setNet(KohonenNet net)
Setter of the property net |
void |
setPatterns(java.util.ArrayList<double[]> patterns)
Setter of the property patterns |
void |
train()
Controls the teaching process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<double[]> patterns
private KohonenNet net
private int learningCycles
private double learningRate
private org.apache.log4j.Logger log
| Constructor Detail |
|---|
public KohonenTrainer(KohonenNet net)
net - the Kohonen map that should be trained| Method Detail |
|---|
public java.util.ArrayList<double[]> getPatterns()
public void setPatterns(java.util.ArrayList<double[]> patterns)
patterns - The patterns to set.public KohonenNet getNet()
public void setNet(KohonenNet net)
net - The net to set.public double getLearningRate()
public void setLearningRate(double learningRate)
learningRate - The learningRate to set.public int getLearningCycles()
public void setLearningCycles(int learningCycles)
learningCycles - The learningCycles to set.public void train()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||