40 SG_PRINT(
"Generating parameter combinations\n")
51 for (int32_t i=0; i<combinations_indices.
vlen; i++)
59 if (print_state)
SG_PRINT(
"Direction is maximize\n")
64 if (print_state)
SG_PRINT(
"Direction is minimize\n")
92 SG_ERROR(
"Evaluation result is not of type CCrossValidationResult!")
102 if (best_combination)
123 if (best_combination)
149 return best_combination;
static SGVector< int32_t > sample_indices(int32_t sample_size, int32_t N)
virtual CParameterCombination * select_model(bool print_state=false)
virtual EEvaluationResultType get_result_type() const
void apply_to_modsel_parameter(Parameter *parameter) const
void print_tree(int prefix_num=0) const
CRandomSearchModelSelection()
int32_t get_num_elements() const
type to encapsulate the results of an evaluation run.
A generic learning machine interface.
Class to select parameters and their ranges for model selection. The structure is organized as a tree...
virtual CEvaluationResult * evaluate()=0
static const float64_t ALMOST_NEG_INFTY
almost neg (log) infinity
Abstract base class for model selection.
CModelSelectionParameters * m_model_parameters
CMachineEvaluation * m_machine_eval
void set_ratio(float64_t ratio)
CMachine * get_machine() const
Machine Evaluation is an abstract class that evaluates a machine according to some criterion...
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 ...
EEvaluationDirection get_evaluation_direction()
Parameter * m_model_selection_parameters
all of classes and functions are contained in the shogun namespace
CDynamicObjectArray * get_combinations(index_t prefix_num=1)
virtual void print_result()
virtual ~CRandomSearchModelSelection()
static const float64_t ALMOST_INFTY
CSGObject * get_element(int32_t index) const
bool append_element(CSGObject *e)