33 #ifndef ML_CLASSIFIERS__SVM_CLASSIFIER_HPP_ 34 #define ML_CLASSIFIERS__SVM_CLASSIFIER_HPP_ 47 using CPoint = std::vector<double>;
49 using ClassMap = std::map<std::string, CPointList>;
64 void save(
const std::string filename);
65 bool load(
const std::string filename);
74 #endif // ML_CLASSIFIERS__SVM_CLASSIFIER_HPP_
std::vector< double > CPoint
std::map< std::string, CPointList > ClassMap
std::map< int, std::string > label_int_to_str
bool load(const std::string filename)
double ** scaling_factors
void addTrainingPoint(std::string target_class, const std::vector< double > point)
std::string classifyPoint(const std::vector< double > point)
std::map< std::string, int > label_str_to_int
void save(const std::string filename)
std::vector< CPoint > CPointList
svm_model * trained_model