|
SHOGUN
v1.1.0
|
Abstract base class for model selection. Takes a parameter tree which specifies parameters for model selection, and a cross-validation instance and searches for the best combination of parameters in the abstract method select_model(), which has to be implemented in concrete sub-classes.
Definition at line 30 of file ModelSelection.h.

Public Member Functions | |
| CModelSelection (CModelSelectionParameters *model_parameters, CCrossValidation *cross_validation) | |
| virtual | ~CModelSelection () |
| virtual CParameterCombination * | select_model ()=0 |
| virtual const char * | get_name () const |
Public Member Functions inherited from CSGObject | |
| CSGObject () | |
| CSGObject (const CSGObject &orig) | |
| virtual | ~CSGObject () |
| virtual bool | is_generic (EPrimitiveType *generic) const |
| template<class T > | |
| void | set_generic () |
| void | unset_generic () |
| virtual void | print_serializable (const char *prefix="") |
| virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
| virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
| void | set_global_io (SGIO *io) |
| SGIO * | get_global_io () |
| void | set_global_parallel (Parallel *parallel) |
| Parallel * | get_global_parallel () |
| void | set_global_version (Version *version) |
| Version * | get_global_version () |
| SGVector< char * > | get_modelsel_names () |
| char * | get_modsel_param_descr (const char *param_name) |
| index_t | get_modsel_param_index (const char *param_name) |
Protected Attributes | |
| CModelSelectionParameters * | m_model_parameters |
| CCrossValidation * | m_cross_validation |
Additional Inherited Members | |
Public Attributes inherited from CSGObject | |
| SGIO * | io |
| Parallel * | parallel |
| Version * | version |
| Parameter * | m_parameters |
| Parameter * | m_model_selection_parameters |
Protected Member Functions inherited from CSGObject | |
| virtual void | load_serializable_pre () throw (ShogunException) |
| virtual void | load_serializable_post () throw (ShogunException) |
| virtual void | save_serializable_pre () throw (ShogunException) |
| virtual void | save_serializable_post () throw (ShogunException) |
| CModelSelection | ( | CModelSelectionParameters * | model_parameters, |
| CCrossValidation * | cross_validation | ||
| ) |
constructor
| model_parameters | parameter tree with model parameters to optimize |
| cross_validation | cross-validation instance to use for evaluation of a certain combination of parameters |
Definition at line 18 of file ModelSelection.cpp.
|
virtual |
destructor
Definition at line 33 of file ModelSelection.cpp.
|
virtual |
Implements CSGObject.
Reimplemented in CGridSearchModelSelection.
Definition at line 51 of file ModelSelection.h.
|
pure virtual |
abstract method to select model
Implemented in CGridSearchModelSelection.
|
protected |
cross validation
Definition at line 57 of file ModelSelection.h.
|
protected |
model parameters
Definition at line 55 of file ModelSelection.h.