|
CEBL
2.1
|
#include <SimpleMax.hpp>
Public Member Functions | |
| SimpleMax () | |
| ~SimpleMax () | |
| void | init (int num_classes) |
| void | updateWithProbabilities (std::vector< double > probs) |
| std::vector< double > | decideClasses () |
| 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 |
Definition at line 32 of file SimpleMax.hpp.
| CEBL::SimpleMax::SimpleMax | ( | ) |
Definition at line 8 of file SimpleMax.cpp.
| CEBL::SimpleMax::~SimpleMax | ( | ) |
Definition at line 15 of file SimpleMax.cpp.
|
virtual |
Return percents for each class.
\return
Implements CEBL::Decision.
Definition at line 78 of file SimpleMax.cpp.
References cppR::asStdVector(), cppR::asUblasVector(), cppR::max(), and cppR::rep().
|
virtual |
get list of parameters needed for decision process
Reimplemented from CEBL::Plugin.
Definition at line 26 of file SimpleMax.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 19 of file SimpleMax.cpp.
References cppR::asStdVector(), and cppR::rep().
| void CEBL::SimpleMax::load | ( | map< string, SerializedObject > | objects | ) |
serialize class to load form archive
Definition at line 107 of file SimpleMax.cpp.
References CEBL::deserialize().
|
virtual |
serialize for saving to archive
Reimplemented from CEBL::Plugin.
Definition at line 98 of file SimpleMax.cpp.
References CEBL::serialize().
|
virtual |
set list of parameters
Reimplemented from CEBL::Plugin.
Definition at line 50 of file SimpleMax.cpp.
|
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 57 of file SimpleMax.cpp.
1.8.1.1