GClasses
|
A training algorithm that throws an exception when train is called - stub for fully serializing training algorithms.
#include <GSelfOrganizingMap.h>
Public Member Functions | |
DummyTrainingAlgorithm () | |
Create a dummy training algorithm (and achieve whirled peas) More... | |
virtual | ~DummyTrainingAlgorithm () |
Destructor to ensure good memory hygiene. More... | |
virtual void | train (GSelfOrganizingMap &map, const GMatrix *pIn) |
Throw error. More... | |
Public Member Functions inherited from GClasses::SOM::TrainingAlgorithm | |
virtual | ~TrainingAlgorithm () |
Virtual destructor. More... | |
virtual GDomNode * | serialize (GDom *pDoc) const |
Add this training algorithm to pDoc and return the resulting node Right now, default implementation is the only one there and it just adds an object with no fields. TODO: make serialize a pure virtual method and implement it in all the training algorithm subclasses. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from GClasses::SOM::TrainingAlgorithm | |
static TrainingAlgorithm * | deserialize (const GDomNode *pNode) |
Create the correct type of training algorithm from the given dom node. Right now just returns a pointer to a DummyTrainingAlgorithm TODO: fix deserialize so training algorithms are really serialized. More... | |
Protected Member Functions inherited from GClasses::SOM::TrainingAlgorithm | |
void | setPRelationBefore (GSelfOrganizingMap &map, const GRelation &newval) |
Set map.m_pRelationBefore to newval. All subclasses must call this in their train methods so that the map will appear trained for the purposes of GIncrementalTransform. More... | |
GDistanceMetric & | weightDistance (GSelfOrganizingMap &map) |
Return the weight distance function so it's dimensionality can be modified by training algorithms. More... | |
|
inline |
Create a dummy training algorithm (and achieve whirled peas)
|
inlinevirtual |
Destructor to ensure good memory hygiene.
|
inlinevirtual |
Throw error.
Implements GClasses::SOM::TrainingAlgorithm.