#include <ArtmapModelStub.h>
Inherits ClassifierModel.
Inheritance diagram for ArtmapModelStub:
Public Member Functions | |
ArtmapModelStub (int numInputDims, int numOutputClasses) | |
Creates an ARTMAP classifier with the specified number of input features and of output classes. | |
~ArtmapModelStub () | |
Destructor. | |
void | setParams (PropertyList *cp) |
Sets any classifier-specific parameters. | |
void | train (std::valarray< float > &in, int out) |
Trains the classifier to associate the input array of floating point values with the output label. | |
void | test (std::valarray< float > &in, std::valarray< float > &out) |
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. | |
void | load (ifstream *wgtFile, string &specialRequest) |
Loads the classifier's persistent state (for example, its weights) from the passed file stream. | |
void | save (ofstream *wgtFile) |
Saves the classifier's persistent state to file. | |
int | getLtmRequired () |
Computes the amount of memory needed to hold the persistent state of the classifier. | |
int | getOutputType (const string &name) |
Classifiers can return three kinds of outputs; given an output name, this method returns the output's type. | |
int | getInt (const string &name) |
Returns the value of an int-valued classifier-specific output. | |
float | getFloat (const string &name) |
Returns the value of an float-valued classifier-specific output. | |
string & | getString (const string &name) |
Returns the value of a string-valued classifier-specific output. | |
void | requestOutput (const string &name, ofstream *ost) |
Lets classifiers support outputs to file, which is the only way of managing very verbose outputs. | |
void | closeStreams () |
Close any streams left open by the requestOutput() method. |
|
Creates an ARTMAP classifier with the specified number of input features and of output classes.
|
|
Destructor.
|
|
Close any streams left open by the requestOutput() method.
Implements ClassifierModel. |
|
Returns the value of an float-valued classifier-specific output.
Implements ClassifierModel. |
|
Returns the value of an int-valued classifier-specific output.
Implements ClassifierModel. |
|
Computes the amount of memory needed to hold the persistent state of the classifier.
Implements ClassifierModel. |
|
Classifiers can return three kinds of outputs; given an output name, this method returns the output's type.
Implements ClassifierModel. |
|
Returns the value of a string-valued classifier-specific output.
Implements ClassifierModel. |
|
Loads the classifier's persistent state (for example, its weights) from the passed file stream.
Implements ClassifierModel. |
|
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.
Implements ClassifierModel. |
|
Saves the classifier's persistent state to file.
Implements ClassifierModel. |
|
Sets any classifier-specific parameters.
Implements ClassifierModel. |
|
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.
Implements ClassifierModel. |
|
Trains the classifier to associate the input array of floating point values with the output label.
Implements ClassifierModel. |