Public Member Functions
Classifier Class Reference

#include <core.hh>

List of all members.

Public Member Functions

virtual float getConf (const std::vector< float > &in)=0
virtual ClassifiergetCopy ()=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 ()

Detailed Description

Interface for a classification model that predicts a class given a vector of floats as input.

Definition at line 295 of file core.hh.


Constructor & Destructor Documentation

virtual Classifier::~Classifier ( ) [inline, virtual]

Definition at line 312 of file core.hh.


Member Function Documentation

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


The documentation for this class was generated from the following file:


rl_common
Author(s):
autogenerated on Thu Jun 6 2019 22:00:08