CEBL
2.1
|
#include <NN.hpp>
Public Member Functions | |
QDA () | |
void | train (const EEGTrainingData &) |
train classifier over training data se | |
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 |
serialize for saving to archive | |
void | load (map< string, SerializedObject > objects) |
QDA () | |
void | train (const EEGTrainingData &) |
train classifier over training data se | |
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 the parameter list | |
map< string, SerializedObject > | save () const |
save plugin to list, and return it | |
void | load (map< string, SerializedObject > objects) |
![]() | |
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) |
![]() | |
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 | |
![]() | |
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 |
|
inline |
Definition at line 36 of file NN.hpp.
References CEBL::Plugin::plugin_name.
|
inline |
Definition at line 36 of file QDA.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.
|
virtual |
get and set the parameter list to the feature extractor
Reimplemented from CEBL::Plugin.
void CEBL::QDA::load | ( | map< string, SerializedObject > | objects | ) |
void CEBL::QDA::load | ( | map< string, SerializedObject > | objects | ) |
|
virtual |
serialize for saving to archive
Reimplemented from CEBL::Plugin.
Definition at line 169 of file NN.cpp.
References CEBL::serialize().
|
virtual |
save plugin to list, and return it
Reimplemented from CEBL::Plugin.
|
virtual |
set the parameter list
Reimplemented from CEBL::Plugin.
|
virtual |
|
virtual |
train classifier over training data se
Train classifier over training data.
Implements CEBL::Classifier.
Definition at line 10 of file NN.cpp.
References EEGTrainingData::collapse(), cppR::colMeans(), cppR::count(), cppR::createMask(), cppR::createMatrix(), cppR::createVector(), cppR::det(), EEGTrainingData::getTargets(), cppR::ncol(), cppR::nrow(), cppR::rep(), cppR::rowMask(), cppR::solve(), cppR::t(), and cppR::unique().
|
virtual |
train classifier over training data se
Implements CEBL::Classifier.
|
virtual |
use classifier on data and return class
Implements CEBL::Classifier.
|
virtual |
use classifier on data and return class
Use classifier on data and return classes.
Implements CEBL::Classifier.
Definition at line 85 of file NN.cpp.
References cppR::apply(), cppR::asStdVector(), cppR::compDiv(), cppR::compProd(), cppR::createMatrix(), cppR::ncol(), cppR::nrow(), cppR::rowSums(), cppR::t(), and cppR::whichMax().