Public Member Functions | Public Attributes | List of all members
ml_classifiers::SVMClassifier Class Reference

#include <svm_classifier.hpp>

Inheritance diagram for ml_classifiers::SVMClassifier:
Inheritance graph
[legend]

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_modeltrained_model
 

Detailed Description

Definition at line 51 of file svm_classifier.hpp.

Constructor & Destructor Documentation

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.

Member Function Documentation

void ml_classifiers::SVMClassifier::addTrainingPoint ( std::string  target_class,
const std::vector< double >  point 
)
virtual

Implements ml_classifiers::Classifier.

Definition at line 56 of file svm_classifier.cpp.

std::string ml_classifiers::SVMClassifier::classifyPoint ( const std::vector< double >  point)
virtual

Implements ml_classifiers::Classifier.

Definition at line 295 of file svm_classifier.cpp.

void ml_classifiers::SVMClassifier::clear ( )
virtual

Implements ml_classifiers::Classifier.

Definition at line 286 of file svm_classifier.cpp.

bool ml_classifiers::SVMClassifier::load ( const std::string  filename)
virtual

Implements ml_classifiers::Classifier.

Definition at line 51 of file svm_classifier.cpp.

void ml_classifiers::SVMClassifier::save ( const std::string  filename)
virtual

Implements ml_classifiers::Classifier.

Definition at line 49 of file svm_classifier.cpp.

void ml_classifiers::SVMClassifier::train ( )
virtual

Implements ml_classifiers::Classifier.

Definition at line 61 of file svm_classifier.cpp.

Member Data Documentation

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.


The documentation for this class was generated from the following files:


ml_classifiers
Author(s): Scott Niekum , Joshua Whitley
autogenerated on Tue May 14 2019 02:28:35