21 #ifndef PND_SOM_TRAINER_H 22 #define PND_SOM_TRAINER_H 36 typedef std::vector<std::pair<std::string, std::vector<float> *>>
DataPoints;
55 #define PRINT_PND_SOM_TRAIN_DEBUG_INFO 1 106 inline std::vector<PndSomNode *>
const &
GetTheMap()
const;
156 #if (PRINT_PND_SOM_TRAIN_DEBUG_INFO > 0) 172 void InitGridRectAngular();
177 void InitGridHexagonal();
183 void InitMapnodes_RandomFromData();
188 void InitMapnodes_Random();
196 size_t FindBestMatchingNode(std::vector<float>
const &vector);
201 double m_neighbourhoodRadius;
205 size_t m_NumModelVectors;
206 size_t m_NumIterations;
210 std::vector<PndSomNode *> m_TheMap;
217 return this->m_TheMap;
222 return (*(this->m_DataSet));
227 this->m_sigmaZero = val;
232 this->m_lambda = val;
237 this->m_InitMode = val;
242 return this->m_sigmaZero;
247 return this->m_lambda;
252 return this->m_InitMode;
257 return this->m_MapHeight;
262 this->m_MapHeight = val;
267 return this->m_MapWidth;
272 this->m_MapWidth = val;
277 return (this->m_MapWidth * this->m_MapHeight);
282 return this->m_NumIterations;
287 this->m_NumIterations = val;
289 #endif // End of interface
DataPoints const & GetInputDataSet() const
void SetSigmaZero(double val)
virtual ~PndMvaSomTrainer()
size_t GetNumIterations() const
void printMapGrid() const
size_t GetMapWidth() const
void SetMapHeight(size_t val)
std::vector< std::pair< std::string, std::vector< float > * > > DataPoints
Data structure of the space points and the cluster centers.
virtual void TrainOnline()
MapNodeInitType GetNodeInitType() const
void SetMapWidth(size_t val)
void SetNumIterations(size_t val)
PndMvaSomTrainer(DataPoints const *const InputData, size_t mapWidth, size_t mapHeight, size_t numIter, MapNodeInitType initType=SOM_RAND_FROM_DATA, GridInitType gridInitType=RECTANGULAR)
double GetSigmaZero() const
void SetNodeInitType(MapNodeInitType val=SOM_RAND_FROM_DATA)
void SetLambda(double val)
virtual void TrainBatch()
std::vector< PndSomNode * > const & GetTheMap() const
size_t GetNumNodes() const
std::vector< std::pair< std::string, std::vector< float > * > > DataPoints
size_t GetMapHeight() const