![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
Prediction is the class that computes predictions.
#include <pred.h>
Public Member Functions | |
virtual GurlsOption * | execute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0 |
Computes predictions of the classifier stored in the field optimizer of opt on the samples passed in the X matrix. | |
Static Public Member Functions | |
static Prediction< T > * | factory (const std::string &id) throw (BadPredictionCreation) |
Factory function returning a pointer to the newly created object. |
virtual GurlsOption* gurls::Prediction< T >::execute | ( | const gMat2D< T > & | X, |
const gMat2D< T > & | Y, | ||
const GurlsOptionsList & | opt | ||
) | [pure virtual] |
X | input data matrix |
Y | labels matrix |
opt | options with the different required fields based on the sub-class |
Implemented in gurls::PredDual< T >, gurls::PredRandFeats< T >, gurls::PredPrimal< T >, and gurls::PredGPRegr< T >.
static Prediction<T>* gurls::Prediction< T >::factory | ( | const std::string & | id | ) | throw (BadPredictionCreation) [inline, static] |
Definition at line 112 of file pred.h.
{ if(id == "primal") return new PredPrimal<T>; if(id == "dual") return new PredDual<T>; if(id == "gpregr") return new PredGPRegr<T>; if(id == "randfeats") return new PredRandFeats<T>; throw BadPredictionCreation(id); }