38 DllExport
virtual void reset(
void) = 0;
46 DllExport
virtual void save(
const std::string &path,
const std::string &name = std::string(),
short idx = -1)
const;
54 DllExport
virtual void load(
const std::string &path,
const std::string &name = std::string(),
short idx = -1);
68 DllExport
virtual void saveFile(FILE *pFile)
const = 0;
74 DllExport
virtual void loadFile(FILE *pFile) = 0;
83 std::string
generateFileName(
const std::string &path,
const std::string &name,
short idx)
const;
Unary random model: no iteraction between nodes.
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.
RandomModelType
Random model types.
Base abstract class for random model training.
virtual void load(const std::string &path, const std::string &name=std::string(), short idx=-1)
Loads the training data.
CBaseRandomModel(byte nStates)
Constructor.
virtual ~CBaseRandomModel(void)
virtual void save(const std::string &path, const std::string &name=std::string(), short idx=-1) const
Saves the training data.
virtual void saveFile(FILE *pFile) const =0
Saves the random model into the file.
virtual void reset(void)=0
Resets class variables.
virtual void loadFile(FILE *pFile)=0
Loads the random model from the file.
byte getNumStates(void) const
Returns number of states (classes)
Pairwise random model: maximum two nodes in the cliques.
Triplet random model: maximum tree nodes in the cliques.
byte m_nStates
The number of states (classes)