SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ModelSelection.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2011 Heiko Strathmann
8  * Copyright (C) 2011 Berlin Institute of Technology and Max-Planck-Society
9  */
10 
14 #include <shogun/base/Parameter.h>
15 
16 using namespace shogun;
17 
19  CCrossValidation* cross_validation) :
20  m_model_parameters(model_parameters), m_cross_validation(cross_validation)
21 {
24 
25  m_parameters->add((CSGObject**) &m_model_parameters, "model_parameters",
26  "Parameter tree for model selection");
27 
28  m_parameters->add((CSGObject**) &m_cross_validation, "cross_validation",
29  "Cross validation strategy");
30 
31 }
32 
34 {
37 }
38 
base class for cross-validation evaluation. Given a learning machine, a splitting strategy...
CModelSelection(CModelSelectionParameters *model_parameters, CCrossValidation *cross_validation)
CCrossValidation * m_cross_validation
Parameter * m_parameters
Definition: SGObject.h:297
#define SG_REF(x)
Definition: SGObject.h:44
Class to select parameters and their ranges for model selection. The structure is organized as a tree...
CModelSelectionParameters * m_model_parameters
void add(bool *param, const char *name, const char *description="")
Definition: Parameter.cpp:23
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:76
#define SG_UNREF(x)
Definition: SGObject.h:45

SHOGUN Machine Learning Toolbox - Documentation