#include <ClassifierModel.h>
Inherited by ArtmapModelStub.
Inheritance diagram for ClassifierModel:
Public Member Functions | |
~ClassifierModel () | |
virtual void | setParams (PropertyList *cp)=0 |
Sets any classifier-specific parameters. | |
virtual void | train (std::valarray< float > &in, int out)=0 |
Trains the classifier to associate the input array of floating point values with the output label. | |
virtual void | test (std::valarray< float > &in, std::valarray< float > &out)=0 |
Tests the trained classifier, mapping the input array to a distributed output vector, which specified the likelihood that the input sample belongs to each of the output classes. | |
virtual void | load (ifstream *wgtFile, string &specialRequest)=0 |
Loads the classifier's persistent state (for example, its weights) from the passed file stream. | |
virtual void | save (ofstream *wgtFile)=0 |
Saves the classifier's persistent state to file. | |
virtual int | getLtmRequired ()=0 |
Computes the amount of memory needed to hold the persistent state of the classifier. | |
virtual int | getOutputType (const string &name)=0 |
Classifiers can return three kinds of outputs; given an output name, this method returns the output's type. | |
virtual int | getInt (const string &name)=0 |
Returns the value of an int-valued classifier-specific output. | |
virtual float | getFloat (const string &name)=0 |
Returns the value of an float-valued classifier-specific output. | |
virtual string & | getString (const string &name)=0 |
Returns the value of a string-valued classifier-specific output. | |
virtual void | requestOutput (const string &name, ofstream *ost)=0 |
Lets classifiers support outputs to file, which is the only way of managing very verbose outputs. | |
virtual void | closeStreams ()=0 |
Close any streams left open by the requestOutput() method. |
|
|
|
Close any streams left open by the requestOutput() method.
Implemented in ArtmapModelStub. |
|
Returns the value of an float-valued classifier-specific output.
Implemented in ArtmapModelStub. |
|
Returns the value of an int-valued classifier-specific output.
Implemented in ArtmapModelStub. |
|
Computes the amount of memory needed to hold the persistent state of the classifier.
Implemented in ArtmapModelStub. |
|
Classifiers can return three kinds of outputs; given an output name, this method returns the output's type.
Implemented in ArtmapModelStub. |
|
Returns the value of a string-valued classifier-specific output.
Implemented in ArtmapModelStub. |
|
Loads the classifier's persistent state (for example, its weights) from the passed file stream.
Implemented in ArtmapModelStub. |
|
Lets classifiers support outputs to file, which is the only way of managing very verbose outputs. The streams are then closed by calling the closeStreams() method.
Implemented in ArtmapModelStub. |
|
Saves the classifier's persistent state to file.
Implemented in ArtmapModelStub. |
|
Sets any classifier-specific parameters.
Implemented in ArtmapModelStub. |
|
Tests the trained classifier, mapping the input array to a distributed output vector, which specified the likelihood that the input sample belongs to each of the output classes. For example, an output vector (0.5 0.5 0.0) implies that the sample is equally likely to belong to class 1 or class 2, whereas (0 0 1) implies the sample is predicted to be of class 3.
Implemented in ArtmapModelStub. |
|
Trains the classifier to associate the input array of floating point values with the output label.
Implemented in ArtmapModelStub. |