ARCHIVE
Snapshot of
the Shogun machine learning toolbox website
as of
2013
: preserved, not maintained. The live site:
shogun-toolbox.org
SHOGUN
4.1.0
Main Page
Related Pages
Modules
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
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-2012 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
()
19
{
20
init();
21
}
22
23
CModelSelection::CModelSelection
(
CMachineEvaluation
* machine_eval,
24
CModelSelectionParameters
* model_parameters)
25
{
26
init();
27
28
m_model_parameters
=model_parameters;
29
SG_REF
(
m_model_parameters
);
30
31
m_machine_eval
=machine_eval;
32
SG_REF
(
m_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
47
CModelSelection::~CModelSelection
()
48
{
49
SG_UNREF
(
m_model_parameters
);
50
SG_UNREF
(
m_machine_eval
);
51
}
ModelSelectionParameters.h
CrossValidation.h
Parameter.h
shogun::CModelSelection::CModelSelection
CModelSelection()
Definition:
ModelSelection.cpp:18
ModelSelection.h
SG_REF
#define SG_REF(x)
Definition:
SGObject.h:51
shogun::CModelSelectionParameters
Class to select parameters and their ranges for model selection. The structure is organized as a tree...
Definition:
ModelSelectionParameters.h:71
shogun::MS_NOT_AVAILABLE
Definition:
SGObject.h:89
shogun::CModelSelection::m_model_parameters
CModelSelectionParameters * m_model_parameters
Definition:
ModelSelection.h:62
shogun::CModelSelection::m_machine_eval
CMachineEvaluation * m_machine_eval
Definition:
ModelSelection.h:64
shogun::CSGObject
Class SGObject is the base class of all shogun objects.
Definition:
SGObject.h:112
shogun::CModelSelection::~CModelSelection
virtual ~CModelSelection()
Definition:
ModelSelection.cpp:47
shogun::CMachineEvaluation
Machine Evaluation is an abstract class that evaluates a machine according to some criterion...
Definition:
MachineEvaluation.h:36
SG_UNREF
#define SG_UNREF(x)
Definition:
SGObject.h:52
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
SG_ADD
#define SG_ADD(...)
Definition:
SGObject.h:81
SHOGUN
Machine Learning Toolbox - Documentation