|
CEBL
2.1
|
#include <max_var.hpp>
Public Member Functions | |
| max_var () | |
| ~max_var () | |
| std::map< std::string, CEBL::Param > | getParamsList () |
| void | setParamsList (std::map< std::string, CEBL::Param > &) |
| set the parameter list | |
| void | train (const EEGTrainingData &) |
| std::vector< int > | use (const ublas::matrix< double > &) const |
Public Member Functions inherited from CEBL::Classifier | |
| 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 ublas::vector< int > | use (const ublas::matrix< double > &)=0 |
Public Member Functions inherited from CEBL::Plugin | |
| Plugin () | |
| virtual | ~Plugin () |
| void | halt () |
| tell classifier to halt | |
| string | getName () const |
| get the name of the plugin | |
| 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 | |
Friends | |
| class | boost::serialization::access |
Additional Inherited Members | |
Protected Attributes inherited from CEBL::Classifier | |
| bool | trained |
| bool | compute_probs |
| std::vector< std::vector < double > > | probabilities |
| int | using_classes |
| int | using_lags |
| int | trained_classes |
| int | trained_lags |
Protected Attributes inherited from CEBL::Plugin | |
| string | plugin_name |
| bool | should_halt |
Definition at line 25 of file max_var.hpp.
|
inline |
constructor sets trained to false
Definition at line 41 of file max_var.hpp.
References CEBL::Classifier::trained.
|
inline |
Definition at line 42 of file max_var.hpp.
|
virtual |
get and set the parameter list to the feature extractor
get and set the paramater list to the feature extractor
Reimplemented from CEBL::Plugin.
Definition at line 11 of file max_var.cpp.
|
virtual |
|
virtual |
train classifier over training data set
Train classifier over training data
Implements CEBL::Classifier.
Definition at line 27 of file max_var.cpp.
| std::vector< int > CEBL::max_var::use | ( | const ublas::matrix< double > & | data | ) | const |
use classifier on data and return class
Definition at line 32 of file max_var.cpp.
References cppR::sd(), cppR::t(), and cppR::var().
|
friend |
serialize class for saving and loading classifier
Definition at line 30 of file max_var.hpp.
1.8.1.1