#include <core.hh>
Public Member Functions | |
virtual std::vector< float > | testInstance (const std::vector< float > &in)=0 |
virtual bool | trainInstance (modelPair &instance)=0 |
virtual bool | trainInstances (std::vector< modelPair > &instances)=0 |
virtual | ~Model () |
Interface for a model that predicts a vector of floats given a vector of floats as input.
virtual Model::~Model | ( | ) | [inline, virtual] |
virtual std::vector<float> Model::testInstance | ( | const std::vector< float > & | in | ) | [pure virtual] |
Get the model's prediction for a given input
virtual bool Model::trainInstance | ( | modelPair & | instance | ) | [pure virtual] |
Train the model on a single training instance
virtual bool Model::trainInstances | ( | std::vector< modelPair > & | instances | ) | [pure virtual] |
Train the model on a vector of training instances