9 #ifndef PND_SOM_TRAINER_H 10 #define PND_SOM_TRAINER_H 24 typedef std::vector<std::pair<std::string, std::vector<float> *>>
DataPoints;
43 #define PRINT_PND_SOM_TRAIN_DEBUG_INFO 1 94 inline std::vector<PndSomNode *>
const &
GetTheMap()
const;
144 #if (PRINT_PND_SOM_TRAIN_DEBUG_INFO > 0) 160 void InitGridRectAngular();
165 void InitGridHexagonal();
171 void InitMapnodes_RandomFromData();
176 void InitMapnodes_Random();
184 size_t FindBestMatchingNode(std::vector<float>
const &vector);
189 double m_neighbourhoodRadius;
193 size_t m_NumModelVectors;
194 size_t m_NumIterations;
198 std::vector<PndSomNode *> m_TheMap;
205 return this->m_TheMap;
210 return (*(this->m_DataSet));
215 this->m_sigmaZero = val;
220 this->m_lambda = val;
225 this->m_InitMode = val;
230 return this->m_sigmaZero;
235 return this->m_lambda;
240 return this->m_InitMode;
245 return this->m_MapHeight;
250 this->m_MapHeight = val;
255 return this->m_MapWidth;
260 this->m_MapWidth = val;
265 return (this->m_MapWidth * this->m_MapHeight);
270 return this->m_NumIterations;
275 this->m_NumIterations = val;
277 #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