|
CEBL
2.1
|
#include <LDA.hpp>
Public Member Functions | |
| LDA () | |
| void | train (const EEGTrainingData &) |
| train classifier over training data set | |
| ublas::vector< int > | use (const ublas::matrix< double > &) |
| use classifier on data and return class | |
| std::map< std::string, CEBL::Param > | getParamsList () |
| get and set the parameter list to the feature extractor | |
| void | setParamsList (std::map< std::string, CEBL::Param > &) |
| set list of parameters | |
| map< string, SerializedObject > | save () const |
| void | load (map< string, SerializedObject > objects) |
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) |
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 void | load (map< string, SerializedObject > objects) |
| load plugin from list of objects | |
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 |
|
inline |
Definition at line 40 of file LDA.hpp.
References CEBL::Plugin::plugin_name.
|
virtual |
get and set the parameter list to the feature extractor
get list of parameters needed for classifier
Reimplemented from CEBL::Plugin.
| void CEBL::LDA::load | ( | map< string, SerializedObject > | objects | ) |
Loads state from serialization.
| objects | map of serialized objects |
Definition at line 166 of file LDA.cpp.
References CEBL::deserialize().
|
virtual |
Serializes state information.
Reimplemented from CEBL::Plugin.
Definition at line 150 of file LDA.cpp.
References CEBL::serialize().
|
virtual |
|
virtual |
train classifier over training data set
Trains LDA classifier using training data.
| data | training data |
Implements CEBL::Classifier.
Definition at line 14 of file LDA.cpp.
References EEGTrainingData::collapse(), cppR::colMeans(), cppR::compProd(), cppR::createMask(), cppR::createMatrix(), cppR::createVector(), EEGTrainingData::getTargets(), cppR::ncol(), cppR::nrow(), cppR::rowMask(), cppR::rowSums(), cppR::solve(), cppR::t(), and cppR::unique().
|
virtual |
use classifier on data and return class
Classifies data samples.
| data | samples to classify |
Implements CEBL::Classifier.
Definition at line 82 of file LDA.cpp.
References cppR::apply(), cppR::asStdVector(), cppR::compDiv(), cppR::createMatrix(), cppR::nrow(), cppR::rowSums(), cppR::t(), and cppR::whichMax().
1.8.1.1