![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
PredKernel is the class that computes the kernel matrix for prediction.
#include <predkernel.h>
Public Member Functions | |
virtual GurlsOptionsList * | execute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0 |
Computes the kernel matrix necessary for predicting the labels associated to X. | |
Static Public Member Functions | |
static PredKernel< T > * | factory (const std::string &id) throw (BadPredKernelCreation) |
Factory function returning a pointer to the newly created object. |
Definition at line 76 of file predkernel.h.
virtual GurlsOptionsList* gurls::PredKernel< T >::execute | ( | const gMat2D< T > & | X, |
const gMat2D< T > & | Y, | ||
const GurlsOptionsList & | opt | ||
) | [pure virtual] |
X | input data matrix |
Y | not used |
opt | options with the different required fields based on the sub-class |
Implemented in gurls::PredKernelTrainTest< T >.
static PredKernel<T>* gurls::PredKernel< T >::factory | ( | const std::string & | id | ) | throw (BadPredKernelCreation) [inline, static] |
Definition at line 97 of file predkernel.h.
{ if(id == "traintest") return new PredKernelTrainTest<T>; throw BadPredKernelCreation(id); }