#include <baseModel.h>
Public Member Functions | |
virtual | ~baseModel () |
virtual T | run (const std::vector< T > &inputVector)=0 |
virtual void | train (const std::vector< trainingExampleTemplate< T > > &trainingSet)=0 |
virtual void | train (const std::vector< trainingExampleTemplate< T > > &trainingSet, const std::size_t whichOutput)=0 |
virtual void | reset ()=0 |
virtual size_t | getNumInputs () const =0 |
virtual std::vector< size_t > | getWhichInputs () const =0 |
virtual void | getJSONDescription (Json::Value ¤tModel)=0 |
Protected Member Functions | |
template<typename TT , class Dummy = int> | |
Json::Value | vector2json (TT vec) |
template<class Dummy = int> | |
Json::Value | vector2json (std::vector< unsigned long > vec) |
Base class for wekinator models. Implemented by NN and KNN classes
|
pure virtual |
Implemented in svmClassification< T >, neuralNetwork< T >, and knnClassification< T >.
|
pure virtual |
Implemented in svmClassification< T >, neuralNetwork< T >, and knnClassification< T >.
|
pure virtual |
Implemented in svmClassification< T >, neuralNetwork< T >, and knnClassification< T >.
|
pure virtual |
Implemented in svmClassification< T >, neuralNetwork< T >, and knnClassification< T >.
|
pure virtual |
Implemented in svmClassification< T >, neuralNetwork< T >, and knnClassification< T >.
|
pure virtual |
Implemented in svmClassification< T >, neuralNetwork< T >, and knnClassification< T >.
|
pure virtual |
Implemented in svmClassification< T >, neuralNetwork< T >, and knnClassification< T >.
|
inlineprotected |
|
inlineprotected |