CEBL
2.1
|
#include <Classifier.hpp>
Public Member Functions | |
Classifier () | |
virtual | ~Classifier () |
bool | isTrained () |
void | reset (CEBL::Param param) |
virtual bool | getProbabilitiesFlag () |
virtual void | setProbabilitiesFlag (bool flag) |
virtual std::vector < std::vector< double > > | getProbabilities () |
int | getTrainedClasses () |
int | getTrainedLags () |
virtual void | update (const EEGTrainingData &data) |
virtual void | train (const EEGTrainingData &)=0 |
virtual ublas::vector< int > | use (const ublas::matrix< double > &)=0 |
![]() | |
Plugin () | |
virtual | ~Plugin () |
void | halt () |
tell classifier to halt | |
string | getName () const |
get the name of the plugin | |
virtual std::map< std::string, CEBL::Param > | getParamsList () |
get the parameter list | |
virtual void | setParamsList (std::map< std::string, CEBL::Param > &) |
set the parameter list | |
virtual map< string, SerializedObject > | save () const |
save plugin to list, and return it | |
virtual void | load (map< string, SerializedObject > objects) |
load plugin from list of objects |
Protected Attributes | |
bool | trained |
bool | compute_probs |
std::vector< std::vector < double > > | probabilities |
int | using_classes |
int | using_lags |
int | trained_classes |
int | trained_lags |
![]() | |
string | plugin_name |
bool | should_halt |
Additional Inherited Members | |
![]() | |
void | inturruptionPoint () |
Provides interface for classifier plugins.
Definition at line 41 of file Classifier.hpp.
|
inline |
Definition at line 55 of file Classifier.hpp.
References compute_probs, trained, trained_classes, trained_lags, using_classes, and using_lags.
|
inlinevirtual |
Definition at line 56 of file Classifier.hpp.
|
inlinevirtual |
Gets probabilities for each class from latest classification. If your classifier cannot produce probabilities, just set probabilities to a vector where the winning class gets 100% and others get 0%
Definition at line 101 of file Classifier.hpp.
References probabilities.
Referenced by ClassifiersConfig::getLastProbs().
|
inlinevirtual |
Gets flag determining whether classifier should compute probabilities or not.
Definition at line 85 of file Classifier.hpp.
References compute_probs.
Referenced by ClassifiersConfig::getUseProbs().
|
inline |
Definition at line 106 of file Classifier.hpp.
References trained_classes.
Referenced by ClassifiersConfig::getTrainedClasses().
|
inline |
Definition at line 108 of file Classifier.hpp.
References trained_lags.
Referenced by ClassifiersConfig::getTrainedLags().
|
inline |
Definition at line 57 of file Classifier.hpp.
References trained.
Referenced by ClassifiersConfig::isTrained().
|
inline |
Definition at line 63 of file Classifier.hpp.
References CEBL::Param::getInt(), and using_classes.
Referenced by ClassifiersConfig::reset().
|
inlinevirtual |
Gets flag determining whether classifier should compute probabilities or not
flag |
Definition at line 91 of file Classifier.hpp.
References compute_probs.
Referenced by ClassifiersConfig::setUseProbs().
|
pure virtual |
Train classifier over training data set
Implemented in CEBL::max_var, CEBL::LDA, CEBL::QDA, and CEBL::QDA.
Referenced by ClassifiersConfig::train(), and update().
|
inlinevirtual |
Updates classifier with training data set. By default just trains the classifier.
Definition at line 114 of file Classifier.hpp.
References train().
|
pure virtual |
Use classifier on data and return class for each sample.
\return
Implemented in CEBL::LDA, CEBL::QDA, and CEBL::QDA.
Referenced by ClassifiersConfig::use().
|
protected |
Definition at line 45 of file Classifier.hpp.
Referenced by Classifier(), getProbabilitiesFlag(), and setProbabilitiesFlag().
|
protected |
Definition at line 46 of file Classifier.hpp.
Referenced by getProbabilities().
|
protected |
Definition at line 44 of file Classifier.hpp.
Referenced by Classifier(), isTrained(), and CEBL::max_var::max_var().
|
protected |
Definition at line 51 of file Classifier.hpp.
Referenced by Classifier(), and getTrainedClasses().
|
protected |
Definition at line 52 of file Classifier.hpp.
Referenced by Classifier(), and getTrainedLags().
|
protected |
Definition at line 48 of file Classifier.hpp.
Referenced by Classifier(), and reset().
|
protected |
Definition at line 49 of file Classifier.hpp.
Referenced by Classifier().