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
ParameterCombination.h
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
#ifndef __PARAMETERCOMBINATION_H__
12
#define __PARAMETERCOMBINATION_H__
13
14
#include <
shogun/lib/DynamicObjectArray.h
>
15
16
namespace
shogun
17
{
18
19
class
CModelSelectionParameters;
20
class
CMachine;
21
class
Parameter;
22
42
class
CParameterCombination
:
public
CSGObject
43
{
44
45
friend
class
CModelSelectionParameters
;
46
47
public
:
49
CParameterCombination
();
50
56
void
print_tree
(
int
prefix_num=0)
const
;
57
59
CParameterCombination
(
Parameter
* param);
60
63
virtual
~CParameterCombination
();
64
71
void
apply_to_modsel_parameter
(
Parameter
* parameter)
const
;
72
78
void
apply_to_machine
(
CMachine
* machine)
const
;
79
84
void
append_child
(
CParameterCombination
* child);
85
92
CParameterCombination
*
copy_tree
()
const
;
93
106
static
CDynamicObjectArray<CParameterCombination>
*
leaf_sets_multiplication
(
107
const
CDynamicObjectArray
<
CDynamicObjectArray<CParameterCombination>
>& sets,
108
const
CParameterCombination
* new_root);
109
114
bool
has_children
()
const
115
{
116
return
m_child_nodes->
get_num_elements
()>0;
117
}
118
126
static
DynArray<Parameter*>
*
parameter_set_multiplication
(
127
const
DynArray<Parameter*>
& set_1,
128
const
DynArray<Parameter*>
& set_2);
129
131
inline
virtual
const
char
*
get_name
()
const
132
{
133
return
"ParameterCombination"
;
134
}
135
136
private
:
137
void
init();
138
139
private
:
140
Parameter
* m_param;
141
CDynamicObjectArray<CParameterCombination>
* m_child_nodes;
142
};
143
}
144
145
#endif
/* __PARAMETERCOMBINATION_H__ */
SHOGUN
Machine Learning Toolbox - Documentation