#include <core.hh>
Public Member Functions | |
virtual float | getConf (const std::vector< float > &in)=0 |
virtual Classifier * | getCopy ()=0 |
virtual void | testInstance (const std::vector< float > &in, std::map< float, float > *retval)=0 |
virtual bool | trainInstance (classPair &instance)=0 |
virtual bool | trainInstances (std::vector< classPair > &instances)=0 |
virtual | ~Classifier () |
Interface for a classification model that predicts a class given a vector of floats as input.
virtual Classifier::~Classifier | ( | ) | [inline, virtual] |
virtual float Classifier::getConf | ( | const std::vector< float > & | in | ) | [pure virtual] |
Get the model's confidence in its predictions for a given input.
virtual Classifier* Classifier::getCopy | ( | ) | [pure virtual] |
Get a copy of the model
virtual void Classifier::testInstance | ( | const std::vector< float > & | in, |
std::map< float, float > * | retval | ||
) | [pure virtual] |
Get the model's prediction for a given input
virtual bool Classifier::trainInstance | ( | classPair & | instance | ) | [pure virtual] |
Train the model on a single training instance
virtual bool Classifier::trainInstances | ( | std::vector< classPair > & | instances | ) | [pure virtual] |
Train the model on a vector of training instances