![]() |
GURLS++
2.0.00
C++ Implementation of GURLS Matlab Toolbox
|
Optimizer is a class that implements a Regularized Least Square algorithm.
#include <optimization.h>

Public Member Functions | |
| virtual GurlsOptionsList * | execute (const gMat2D< T > &X, const gMat2D< T > &Y, const GurlsOptionsList &opt)=0 |
| Implements a Regularized Least Square algorithm. | |
Static Public Member Functions | |
| static Optimizer< T > * | factory (const std::string &id) throw (BadOptimizerCreation) |
| Factory function returning a pointer to the newly created object. | |
Definition at line 111 of file optimization.h.
| virtual GurlsOptionsList* gurls::Optimizer< 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::RLSRandFeats< T >, gurls::RLSPegasos< T >, gurls::RLSGPRegr< T >, gurls::RLSPrimalRecInit< T >, gurls::RLSDualr< T >, gurls::RLSPrimalRecUpdate< T >, gurls::RLSPrimal< T >, gurls::RLSAuto< T >, gurls::RLSDual< T >, and gurls::RLSPrimalr< T >.
| static Optimizer<T>* gurls::Optimizer< T >::factory | ( | const std::string & | id | ) | throw (BadOptimizerCreation) [inline, static] |
Definition at line 130 of file optimization.h.
{
if(id == "rlsauto")
return new RLSAuto<T>;
if(id == "rlsprimal")
return new RLSPrimal<T>;
if(id == "rlsprimalr")
return new RLSPrimalr<T>;
if(id == "rlsdual")
return new RLSDual<T>;
if(id == "rlsdualr")
return new RLSDualr<T>;
if(id == "rlspegasos")
return new RLSPegasos<T>;
if(id == "rlsgpregr")
return new RLSGPRegr<T>;
if(id == "rlsprimalrecinit")
return new RLSPrimalRecInit<T>;
if(id == "rlsprimalrecupdate")
return new RLSPrimalRecUpdate<T>;
if(id == "rlsrandfeats")
return new RLSRandFeats<T>;
throw BadOptimizerCreation(id);
}