SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules 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-2012 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 {
20  init();
21 }
22 
24  CModelSelectionParameters* model_parameters)
25 {
26  init();
27 
28  m_model_parameters=model_parameters;
30 
31  m_machine_eval=machine_eval;
33 }
34 
35 void CModelSelection::init()
36 {
37  m_model_parameters=NULL;
38  m_machine_eval=NULL;
39 
40  SG_ADD((CSGObject**)&m_model_parameters, "model_parameters",
41  "Parameter tree for model selection", MS_NOT_AVAILABLE);
42 
43  SG_ADD((CSGObject**)&m_machine_eval, "machine_evaluation",
44  "Machine evaluation strategy", MS_NOT_AVAILABLE);
45 }
46 
48 {
51 }
#define SG_REF(x)
Definition: SGObject.h:54
Class to select parameters and their ranges for model selection. The structure is organized as a tree...
CModelSelectionParameters * m_model_parameters
CMachineEvaluation * m_machine_eval
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:115
Machine Evaluation is an abstract class that evaluates a machine according to some criterion...
#define SG_UNREF(x)
Definition: SGObject.h:55
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
#define SG_ADD(...)
Definition: SGObject.h:84

SHOGUN Machine Learning Toolbox - Documentation