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__ */

SHOGUN Machine Learning Toolbox - Documentation