CEBL
2.1
|
#include <Decision.hpp>
Public Member Functions | |
virtual | ~Decision () |
virtual void | init (int num_classes) |
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) |
virtual void | updateWithProbabilities (std::vector< double > probs)=0 |
virtual std::vector< double > | decideClasses ()=0 |
![]() | |
Plugin () | |
virtual | ~Plugin () |
void | halt () |
tell classifier to halt | |
string | getName () const |
get the name of the plugin | |
virtual std::map< std::string, CEBL::Param > | getParamsList () |
get the parameter list | |
virtual void | setParamsList (std::map< std::string, CEBL::Param > &) |
set the parameter list | |
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 |
Protected Attributes | |
int | num_classes |
![]() | |
string | plugin_name |
bool | should_halt |
Additional Inherited Members | |
![]() | |
void | inturruptionPoint () |
Provides interface for realtime decision making plugins.
Definition at line 37 of file Decision.hpp.
|
inlinevirtual |
Definition at line 42 of file Decision.hpp.
References num_classes.
|
pure virtual |
|
inlinevirtual |
Initialize the decision process.
num_classes |
Reimplemented in CEBL::MSPRT, and CEBL::SimpleMax.
Definition at line 51 of file Decision.hpp.
References num_classes.
|
inlinevirtual |
Updates decision with classes for several samples.
classes | classes for several samples |
Definition at line 60 of file Decision.hpp.
|
inlinevirtual |
Update for a single sample based on classification. By default, this will construct a list of probabilities with 100% for the class and 0% for all other classes and call updateWithProbabilities()
cls | classified class number |
Definition at line 78 of file Decision.hpp.
References num_classes, and updateWithProbabilities().
|
inline |
perform update over several samples
Definition at line 67 of file Decision.hpp.
Referenced by updateWithClassification().
|
pure virtual |
Update decision process based on probabilities from a classifiction if we don't have probs available, just use updateWithClassification.
probs |
Implemented in CEBL::MSPRT, and CEBL::SimpleMax.
|
protected |
Definition at line 40 of file Decision.hpp.
Referenced by init(), updateWithClassification(), and ~Decision().