11 #ifndef __MODELSELECTIONPARAMETERS_H_
12 #define __MODELSELECTIONPARAMETERS_H_
20 class CParameterCombination;
119 int32_t type_base=2);
124 return "ModelSelectionParameters";
131 void delete_values();
135 ERangeType type,
void* step,
void* type_base);
144 return m_child_nodes->get_num_elements()>0;
149 const char* m_node_name;
172 SG_SERROR(
"unable build values: max=%f < min=%f\n", max, min);
179 for (
index_t i=0; i<num_values; ++i)
181 T current=min+i*step;
193 SG_SERROR(
"log(x) with x=%f\n", current);
void set_values(SGVector< T > values)
~CModelSelectionParameters()
CModelSelectionParameters()
CDynamicObjectArray< CParameterCombination > * get_combinations()
Class to select parameters and their ranges for model selection. The structure is organized as a tree...
Class SGObject is the base class of all shogun objects.
static int32_t pow(int32_t x, int32_t n)
virtual const char * get_name() const
void print_tree(int prefix_num=0)
void build_values(float64_t min, float64_t max, ERangeType type, float64_t step=1.0, float64_t type_base=2.0)
Template Dynamic array class that creates an array that can be used like a list or an array...
static float64_t log2(float64_t v)
SGVector< T > create_range_array(T min, T max, ERangeType type, T step, T type_base)
bool has_children() const
static float64_t round(float64_t d)
void append_child(CModelSelectionParameters *child)