Xmipp
v3.23.11-Nereus
|
#include <base_algorithm.h>
Public Types | |
typedef DSClass | DS |
typedef DS::TS | TS |
Public Member Functions | |
ClassificationAlgorithm (const std::string &_ID="") | |
virtual | ~ClassificationAlgorithm () |
virtual void | train (DS &_ds, const TS &_examples) const |
virtual void | train (DS &_ds, TS &_examples) const |
virtual double | test (const DS &_ds, const TS &_examples) const =0 |
virtual void | printSelf (std::ostream &_os) const |
virtual const std::string & | setID () const |
virtual std::string & | setID () |
void | setListener (BaseListener *_listener) |
Protected Attributes | |
std::string | ID |
BaseListener * | listener |
This is the parent class for all algorithms that can be trained and applied in order to classify a set of data. A xmipp Algorithm object must have: 1) a train method that accepts a set of examples 2) an apply method that accepts an example and classifies it
Definition at line 54 of file base_algorithm.h.
typedef DSClass ClassificationAlgorithm< DSClass >::DS |
Definition at line 58 of file base_algorithm.h.
typedef DS::TS ClassificationAlgorithm< DSClass >::TS |
Definition at line 59 of file base_algorithm.h.
|
inline |
Constructor. Parameter: _ID an ID string unique for each algorithm class
Definition at line 65 of file base_algorithm.h.
|
inlinevirtual |
|
inlinevirtual |
Print itself on standard output
Reimplemented in SOM, and FuzzyCMeans.
Definition at line 106 of file base_algorithm.h.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
|
pure virtual |
Method to test the algorithm. Note that this method is pure virtual, so it must be defined in every xmipp descendant class. Parameter: _ds Data structure to train. Const because its not affected by test Parameter: _examples A training set with the training examples.
|
inlinevirtual |
Method to train the algorithm. Note that this method is pure virtual, so it ust be defined in every xmipp descendant class. Parameter: _ds Data structure to train Parameter: _examples A training set with the training examples.
Definition at line 81 of file base_algorithm.h.
|
inlinevirtual |
Method to train the algorithm. Note that this method is pure virtual, so it ust be defined in every xmipp descendant class. Parameter: _ds Data structure to train Parameter: _examples A training set with the training examples.
Definition at line 90 of file base_algorithm.h.
|
protected |
Definition at line 132 of file base_algorithm.h.
|
protected |
Definition at line 136 of file base_algorithm.h.