Direct Graphical Models  v.1.7.0
DirectGraphicalModels::ITrain Class Referenceabstract

Interface class for random model training. More...

#include <ITrain.h>

Inheritance diagram for DirectGraphicalModels::ITrain:
Collaboration diagram for DirectGraphicalModels::ITrain:

Public Member Functions

 ITrain (byte nStates, word nFeatures)
 Constructor. More...
 
virtual ~ITrain (void)=default
 
virtual void train (bool doClean=false)=0
 Random model training. More...
 
word getNumFeatures (void) const
 Returns number of features. More...
 
- Public Member Functions inherited from DirectGraphicalModels::CBaseRandomModel
 CBaseRandomModel (byte nStates)
 Constructor. More...
 
virtual ~CBaseRandomModel (void)
 
virtual void reset (void)=0
 Resets class variables. More...
 
virtual void save (const std::string &path, const std::string &name=std::string(), short idx=-1) const
 Saves the training data. More...
 
virtual void load (const std::string &path, const std::string &name=std::string(), short idx=-1)
 Loads the training data. More...
 
byte getNumStates (void) const
 Returns number of states (classes) More...
 

Private Attributes

word m_nFeatures
 The number of features (length of the feature vector) More...
 

Additional Inherited Members

- Protected Member Functions inherited from DirectGraphicalModels::CBaseRandomModel
virtual void saveFile (FILE *pFile) const =0
 Saves the random model into the file. More...
 
virtual void loadFile (FILE *pFile)=0
 Loads the random model from the file. More...
 
std::string generateFileName (const std::string &path, const std::string &name, short idx) const
 Generates name of the data file for storing random model parameters. More...
 
- Protected Attributes inherited from DirectGraphicalModels::CBaseRandomModel
byte m_nStates
 The number of states (classes) More...
 

Detailed Description

Interface class for random model training.

Author
Sergey G. Kosov, serge.nosp@m.y.ko.nosp@m.sov@p.nosp@m.roje.nosp@m.ct-10.nosp@m..de

Definition at line 15 of file ITrain.h.

Constructor & Destructor Documentation

◆ ITrain()

DirectGraphicalModels::ITrain::ITrain ( byte  nStates,
word  nFeatures 
)
inline

Constructor.

Parameters
nStatesNumber of states (classes)
nFeaturesNumber of features

Definition at line 23 of file ITrain.h.

◆ ~ITrain()

virtual DirectGraphicalModels::ITrain::~ITrain ( void  )
virtualdefault

Member Function Documentation

◆ getNumFeatures()

word DirectGraphicalModels::ITrain::getNumFeatures ( void  ) const
inline

Returns number of features.

Returns
Number of features

Definition at line 37 of file ITrain.h.

Here is the caller graph for this function:

◆ train()

virtual void DirectGraphicalModels::ITrain::train ( bool  doClean = false)
pure virtual

Member Data Documentation

◆ m_nFeatures

word DirectGraphicalModels::ITrain::m_nFeatures
private

The number of features (length of the feature vector)

Definition at line 41 of file ITrain.h.


The documentation for this class was generated from the following file: