SHOGUN  v1.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
15 
16 namespace shogun
17 {
18 
19 class CModelSelectionParameters;
20 class CMachine;
21 class Parameter;
22 
43 {
44 
46 
47 public:
50 
56  void print_tree(int prefix_num=0) const;
57 
60 
63  virtual ~CParameterCombination();
64 
71  void apply_to_modsel_parameter(Parameter* parameter) const;
72 
78  void apply_to_machine(CMachine* machine) const;
79 
85 
93 
108  const CParameterCombination* new_root);
109 
114  bool has_children() const
115  {
116  return m_child_nodes->get_num_elements()>0;
117  }
118 
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;
142 };
143 }
144 
145 #endif /* __PARAMETERCOMBINATION_H__ */
void apply_to_modsel_parameter(Parameter *parameter) const
virtual const char * get_name() const
void print_tree(int prefix_num=0) const
CParameterCombination * copy_tree() const
A generic learning machine interface.
Definition: Machine.h:96
Class to select parameters and their ranges for model selection. The structure is organized as a tree...
Parameter class.
Definition: Parameter.h:84
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:76
Template Dynamic array class that creates an array that can be used like a list or an array...
Definition: DynArray.h:31
void append_child(CParameterCombination *child)
Template Dynamic array class that creates an array that can be used like a list or an array...
Definition: DynArray.h:21
class that holds ONE combination of parameters for a learning machine. The structure is organized as ...
static CDynamicObjectArray< CParameterCombination > * leaf_sets_multiplication(const CDynamicObjectArray< CDynamicObjectArray< CParameterCombination > > &sets, const CParameterCombination *new_root)
void apply_to_machine(CMachine *machine) const
static DynArray< Parameter * > * parameter_set_multiplication(const DynArray< Parameter * > &set_1, const DynArray< Parameter * > &set_2)

SHOGUN Machine Learning Toolbox - Documentation