#include <svm_classifier.h>
Public Member Functions | |
void | addTrainingPoint (std::string target_class, const std::vector< double > point) |
std::string | classifyPoint (const std::vector< double > point) |
void | clear () |
bool | load (const std::string filename) |
void | save (const std::string filename) |
SVMClassifier () | |
void | train () |
~SVMClassifier () | |
Public Attributes | |
ClassMap | class_data |
std::map< int, std::string > | label_int_to_str |
std::map< std::string, int > | label_str_to_int |
double ** | scaling_factors |
svm_problem | svm_data |
svm_model * | trained_model |
Definition at line 53 of file svm_classifier.h.
Definition at line 52 of file svm_classifier.cpp.
Definition at line 54 of file svm_classifier.cpp.
void ml_classifiers::SVMClassifier::addTrainingPoint | ( | std::string | target_class, |
const std::vector< double > | point | ||
) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 60 of file svm_classifier.cpp.
string ml_classifiers::SVMClassifier::classifyPoint | ( | const std::vector< double > | point | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 267 of file svm_classifier.cpp.
void ml_classifiers::SVMClassifier::clear | ( | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 258 of file svm_classifier.cpp.
bool ml_classifiers::SVMClassifier::load | ( | const std::string | filename | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 58 of file svm_classifier.cpp.
void ml_classifiers::SVMClassifier::save | ( | const std::string | filename | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 56 of file svm_classifier.cpp.
void ml_classifiers::SVMClassifier::train | ( | ) | [virtual] |
Implements ml_classifiers::Classifier.
Definition at line 65 of file svm_classifier.cpp.
Definition at line 56 of file svm_classifier.h.
std::map<int,std::string> ml_classifiers::SVMClassifier::label_int_to_str |
Definition at line 60 of file svm_classifier.h.
std::map<std::string,int> ml_classifiers::SVMClassifier::label_str_to_int |
Definition at line 59 of file svm_classifier.h.
Definition at line 61 of file svm_classifier.h.
Definition at line 57 of file svm_classifier.h.
Definition at line 58 of file svm_classifier.h.