|
CEBL
2.1
|
#include <MSPRT.hpp>
Public Member Functions | |
| MSPRT () | |
| ~MSPRT () | |
| void | updateWithProbabilities (std::vector< double > probs) |
| std::vector< double > | decideClasses () |
| void | init (int num_classes) |
| std::map< std::string, CEBL::Param > | getParamsList () |
| get list of parameters needed for decision process | |
| 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) |
| serialize class to load form archive | |
Public Member Functions inherited from CEBL::Decision | |
| virtual | ~Decision () |
| virtual void | updateWithClassification (ublas::vector< int > classes) |
| void | updateWithProbabilities (std::vector< std::vector< double > > probs) |
| perform update over several samples | |
| virtual void | updateWithClassification (int cls) |
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::Decision | |
| int | num_classes |
Protected Attributes inherited from CEBL::Plugin | |
| string | plugin_name |
| bool | should_halt |
|
virtual |
Return percents for each class.
\return
Implements CEBL::Decision.
Definition at line 72 of file MSPRT.cpp.
References cppR::apply(), cppR::asStdVector(), and cppR::max().
|
virtual |
get list of parameters needed for decision process
Reimplemented from CEBL::Plugin.
Definition at line 23 of file MSPRT.cpp.
References CEBL::Param::setMax(), CEBL::Param::setMin(), and CEBL::Param::setStep().
|
virtual |
Initialize the decision process.
| num_classes |
Reimplemented from CEBL::Decision.
Definition at line 86 of file MSPRT.cpp.
References cppR::rep().
| void CEBL::MSPRT::load | ( | map< string, SerializedObject > | objects | ) |
serialize class to load form archive
Definition at line 109 of file MSPRT.cpp.
References CEBL::deserialize().
|
virtual |
serialize for saving to archive
Reimplemented from CEBL::Plugin.
Definition at line 97 of file MSPRT.cpp.
References CEBL::serialize().
|
virtual |
|
virtual |
Update decision process based on probabilities from a classifiction if we don't have probs available, just use updateWithClassification.
| probs |
Implements CEBL::Decision.
Definition at line 59 of file MSPRT.cpp.
References cppR::apply(), cppR::asUblasVector(), cppR::rep(), and cppR::sum().
1.8.1.1