1 #if !defined(_CLASSASSIGNMENTS_) 2 #define _CLASSASSIGNMENTS_ 86 typedef std::map<MLClassPtr, kkint16> ClassLookUp;
87 typedef ClassLookUp::iterator ClassLookUpIterator;
89 ClassLookUp classLookUp;
__int16 kkint16
16 bit signed integer.
VectorShort GetUniqueListOfAssignments() const
ClassAssignments * ClassAssignmentsPtr
void Save(const KKStr &fileName, bool &successful)
MLClassPtr GetMLClass(kkint16 num) const
kkint16 GetNumForClass(MLClassPtr mlClass) const
Represents a "Class" in the Machine Learning Sense.
MLClassList GetMLClasses(kkint16 num) const
kkint32 MemoryConsumedEstimated() const
Binds MLClass objects to the appropriate number that the Learning Algorithm expects.
static KKStr Concat(const std::vector< std::string > &values)
Concatenates the list of 'std::string' strings.
void AddMLClass(MLClassPtr mlClass, kkint16 num, RunLog &log)
MLClassPtr GetMLClassByIndex(size_t idx)
void ParseToString(const KKStr &_toString, RunLog &_log)
Loads class assignments from string that was originally generated by ToString.
Used for logging messages.
void EncodeProblem(const struct svm_paramater ¶m, struct svm_problem &prob_in, struct svm_problem &prob_out)
ClassAssignments(const MLClassList &classes)
Creates assignment for all classes in 'classes.
std::vector< short > VectorShort
Maintains a list of MLClass instances.