#include <svm_classifier.hpp>
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 Member Functions inherited from ml_classifiers::Classifier | |
Classifier () | |
virtual | ~Classifier () |
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 51 of file svm_classifier.hpp.
ml_classifiers::SVMClassifier::SVMClassifier | ( | ) |
Definition at line 45 of file svm_classifier.cpp.
ml_classifiers::SVMClassifier::~SVMClassifier | ( | ) |
Definition at line 47 of file svm_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 56 of file svm_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 295 of file svm_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 286 of file svm_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 51 of file svm_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 49 of file svm_classifier.cpp.
|
virtual |
Implements ml_classifiers::Classifier.
Definition at line 61 of file svm_classifier.cpp.
ClassMap ml_classifiers::SVMClassifier::class_data |
Definition at line 54 of file svm_classifier.hpp.
std::map<int, std::string> ml_classifiers::SVMClassifier::label_int_to_str |
Definition at line 58 of file svm_classifier.hpp.
std::map<std::string, int> ml_classifiers::SVMClassifier::label_str_to_int |
Definition at line 57 of file svm_classifier.hpp.
double** ml_classifiers::SVMClassifier::scaling_factors |
Definition at line 59 of file svm_classifier.hpp.
svm_problem ml_classifiers::SVMClassifier::svm_data |
Definition at line 55 of file svm_classifier.hpp.
svm_model* ml_classifiers::SVMClassifier::trained_model |
Definition at line 56 of file svm_classifier.hpp.