![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
ParamSelection is the class that implements parameter selection.
#include <paramsel.h>
Public Member Functions | |
virtual GurlsOptionsList * | execute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0 |
Implements the selection of the regularization parameter(s) | |
Static Public Member Functions | |
static ParamSelection< T > * | factory (const std::string &id) throw (BadParamSelectionCreation) |
Factory function returning a pointer to the newly created object. |
Definition at line 127 of file paramsel.h.
virtual GurlsOptionsList* gurls::ParamSelection< 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::ParamSelSiglamHo< T >, gurls::ParamSelHoDual< T >, gurls::ParamSelLoocvPrimal< T >, gurls::ParamSelHoPrimal< T >, gurls::ParamSelSiglam< T >, gurls::ParamSelLoocvDual< T >, gurls::ParamSelHoGPRegr< T >, gurls::ParamSelLooGPRegr< T >, gurls::ParamSelSiglamLooGPRegr< T >, gurls::ParamSelCalibrateSGD< T >, gurls::ParamSelFixSigLam< T >, gurls::ParamSelFixLambda< T >, and gurls::ParamSelSiglamHoGPRegr< T >.
static ParamSelection<T>* gurls::ParamSelection< T >::factory | ( | const std::string & | id | ) | throw (BadParamSelectionCreation) [inline, static] |
Definition at line 146 of file paramsel.h.
{ if(id == "loocvprimal") return new ParamSelLoocvPrimal<T>; if(id == "loocvdual") return new ParamSelLoocvDual<T>; if(id == "fixlambda") return new ParamSelFixLambda<T>; if(id == "calibratesgd") return new ParamSelCalibrateSGD<T>; if(id == "siglam") return new ParamSelSiglam<T>; if(id == "siglamho") return new ParamSelSiglamHo<T>; if(id == "hodual") return new ParamSelHoDual<T>; if(id == "hodualr") return new ParamSelHoDualr<T>; if(id == "hoprimal") return new ParamSelHoPrimal<T>; if(id == "hoprimalr") return new ParamSelHoPrimalr<T>; if(id == "fixsiglam") return new ParamSelFixSigLam<T>; if(id == "loogpregr") return new ParamSelLooGPRegr<T>; if(id == "hogpregr") return new ParamSelHoGPRegr<T>; if(id == "siglamloogpregr") return new ParamSelSiglamLooGPRegr<T>; if(id == "siglamhogpregr") return new ParamSelSiglamHoGPRegr<T>; throw BadParamSelectionCreation(id); }