12 #ifndef __PARAMETERCOMBINATION_H__
13 #define __PARAMETERCOMBINATION_H__
22 class CModelSelectionParameters;
140 template <
typename T>
215 return "ParameterCombination";
225 if (param_combination)
228 REQUIRE(casted,
"Error, provided object of class \"%s\" is not a subclass of"
229 " CParameterCombination!\n",
virtual const char * get_name() const =0
bool set_parameter(const char *name, T value, CSGObject *parent, index_t index=-1)
virtual int32_t get_num_parameters()
void apply_to_modsel_parameter(Parameter *parameter) const
TParameter * get_parameter(const char *name, CSGObject *parent)
bool has_children() const
TParameter * get_parameter(int32_t idx)
virtual const char * get_name() const
void print_tree(int prefix_num=0) const
int32_t get_num_elements() const
CParameterCombination * copy_tree() const
A generic learning machine interface.
Class to select parameters and their ranges for model selection. The structure is organized as a tree...
uint32_t m_parameters_length
static CParameterCombination * obtain_from_generic(CSGObject *param_combination)
CDynamicObjectArray * m_child_nodes
Class SGObject is the base class of all shogun objects.
void merge_with(CParameterCombination *node)
Template Dynamic array class that creates an array that can be used like a list or an array...
static CDynamicObjectArray * extract_trees_with_name(const CDynamicObjectArray *sets, const char *desired_name)
void append_child(CParameterCombination *child)
bool set_parameter_helper(const char *name, bool value, index_t index)
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
Class that holds ONE combination of parameters for a learning machine. The structure is organized as ...
virtual void build_parameter_parent_map(CMap< TParameter *, CSGObject * > *parent_map)
all of classes and functions are contained in the shogun namespace
TParameter * get_parameter_helper(const char *name)
CSGObject * get_element(int32_t index) const
virtual uint32_t get_parameters_length()
virtual void build_parameter_values_map(CMap< TParameter *, SGVector< float64_t > > *values_map)
virtual ~CParameterCombination()
void apply_to_machine(CMachine *machine) const
static CDynamicObjectArray * non_value_tree_multiplication(const CDynamicObjectArray *sets, const CParameterCombination *new_root)
static DynArray< Parameter * > * parameter_set_multiplication(const DynArray< Parameter * > &set_1, const DynArray< Parameter * > &set_2)
the class CMap, a map based on the hash-table. w: http://en.wikipedia.org/wiki/Hash_table ...
static CDynamicObjectArray * leaf_sets_multiplication(const CDynamicObjectArray &sets, const CParameterCombination *new_root)