SHOGUN
v1.1.0
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
shogun
modelselection
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
11
#include <
shogun/modelselection/ModelSelection.h
>
12
#include <
shogun/modelselection/ModelSelectionParameters.h
>
13
#include <
shogun/evaluation/CrossValidation.h
>
14
#include <
shogun/base/Parameter.h
>
15
16
using namespace
shogun;
17
18
CModelSelection::CModelSelection
(
CModelSelectionParameters
* model_parameters,
19
CCrossValidation
* cross_validation) :
20
m_model_parameters(model_parameters), m_cross_validation(cross_validation)
21
{
22
SG_REF
(
m_model_parameters
);
23
SG_REF
(
m_cross_validation
);
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
33
CModelSelection::~CModelSelection
()
34
{
35
SG_UNREF
(
m_model_parameters
);
36
SG_UNREF
(
m_cross_validation
);
37
}
38
SHOGUN
Machine Learning Toolbox - Documentation