|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object databionics.esom.train.SOM databionics.esom.train.KBatchSOM
public class KBatchSOM
version of batch training, updates map every k-th epoch
Field Summary | |
---|---|
protected cern.colt.map.OpenIntObjectHashMap |
hashMap
Hash map to connect bm index and bm hitcount |
protected int |
k
parameter for k-batch training |
protected static org.apache.log4j.Logger |
log
interface to log4j system |
Fields inherited from class databionics.esom.train.SOM |
---|
bestmatches, bmSearch, bmStat, bmStatNeeded, center, classes, count, data, descriptives, distanceFunction, distances, epoch, epochs, grid, initMethod, keys, lrn, neighborhood, neuron, nf, offline, oldBestmatches, online, pattern, permutation, permutations, permute, qerror, radius, radiusCooling, random, rate, rateCooling, saveEpoch, saveEpoches, savePrefix, saveUMatrix, view |
Constructor Summary | |
---|---|
KBatchSOM()
Standard constructor |
Method Summary | |
---|---|
void |
afterEpoch()
Now, the neurons are updated. |
void |
afterUpdate(int index,
int row)
Store the data vector projected on this bestmatch in a BestMatchHit object. |
int |
getK()
|
void |
setK(int k)
|
void |
update(cern.colt.matrix.DoubleMatrix1D vector,
int bm,
int pos)
Empty implementation. |
void |
updateNeighborhood(cern.colt.matrix.DoubleMatrix1D vector,
int bm)
Update a neuron and its neighborhood. |
Methods inherited from class databionics.esom.train.SOM |
---|
beforeEpoch, beforeSearch, beforeUpdate, calcQerror, centerMap, cool, getBestMatches, getBmSearch, getData, getDescriptives, getDistance, getDistance, getDistanceFunction, getDistances, getEpochs, getGrid, getKeys, getNeighborhood, getNumberFormat, getOldBestmatches, getPattern, getPermutation, getPermute, getRadius, getRadiusCooling, getRateCooling, init, isBmStatNeeded, isCenter, loadCls, loadData, saveBestMatches, setBestMatches, setBestMatches, setBmSearch, setBmStatNeeded, setCenter, setData, setDistanceFunction, setDistances, setEpochs, setGrid, setInit, setKeys, setNeighborhood, setNumberFormat, setOldBestmatches, setOnline, setPermute, setRadiusCooling, setRateCooling, setSaveEpoch, setSaveEpochBoolean, setSavePrefix, setSaveUMatrix, stop, train, updateNeuron |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.log4j.Logger log
protected cern.colt.map.OpenIntObjectHashMap hashMap
protected int k
Constructor Detail |
---|
public KBatchSOM()
Method Detail |
---|
public void updateNeighborhood(cern.colt.matrix.DoubleMatrix1D vector, int bm)
updateNeighborhood
in class SOM
vector
- vector of databm
- index of bestmatching neuronpublic void update(cern.colt.matrix.DoubleMatrix1D vector, int bm, int pos)
update
in class SOM
vector
- vector of databm
- index of bestmatching neuronpublic void afterUpdate(int index, int row)
afterUpdate
in class SOM
index
- Index of neuron to be updatedrow
- Index of pattern in datapublic void afterEpoch()
afterEpoch
in class SOM
public int getK()
public void setK(int k)
k
- The k to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |