public class LVQTrainer extends SOMTrainer
| Modifier and Type | Field and Description |
|---|---|
static int |
LVQ1
Simple LVQ with constant learn rate.
|
static int |
OLVQ1
Optimized LVQ with neuron-specific adapting learn rate (default).
|
deltaRadius, radius, startRadius, topologycurrentEpoch, epochs, learnRate, net, shuffle, stepMode, testData, trainingData, trainingSignalGenerator| Constructor and Description |
|---|
LVQTrainer(Topology topology)
Creates the LVQ Trainer.
|
| Modifier and Type | Method and Description |
|---|---|
LVQTrainer |
clone()
A deep clone.
|
void |
fromXML(org.jdom2.Element element)
Reads attributes from XML.
|
protected void |
reset()
Resets the trainer by setting the output neuron's error signal to 'learnRate'.
|
void |
setFlavor(int flavor) |
org.jdom2.Element |
toXML(org.jdom2.Element element)
Writes specific attributes to XML tree.
|
void |
train(PatternSet set,
int epochs)
Trains the SOM depending on the 'supervised' flag.
|
calcAdaptation, endBatch, endTrain, getStartRadius, getTopology, setNetwork, setStartRadius, test, train, traingetBatchSize, getEpochs, getLearnRate, getNetwork, getRank, getTestData, getTrainingData, getTrainingSignalGenerator, getWinningNeuron, setBatchSize, setEpochs, setLearnRate, setShuffle, setStepMode, setTestData, setTrainingData, setTrainingSignalGenerator, test, toString, train, trainPattern, updateLinks, updateNeuronspublic static final int LVQ1
public static final int OLVQ1
public LVQTrainer(Topology topology)
topology - the SOM topologypublic LVQTrainer clone()
clone in class SOMTrainerprotected void reset()
reset in class SOMTrainerpublic void setFlavor(int flavor)
public void train(PatternSet set, int epochs)
set - the complete training setepochs - the number of epochspublic org.jdom2.Element toXML(org.jdom2.Element element)
toXML in interface StorabletoXML in class SOMTrainerelement - the parent elementpublic void fromXML(org.jdom2.Element element)
SOMTrainerfromXML in interface StorablefromXML in class SOMTrainerelement - a JDOM element