SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
GradientModelSelection.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) 2013 Roman Votyakov
8  * Copyright (C) 2012 Jacob Walker
9  */
10 
11 
12 #ifndef CGRADIENTMODELSELECTION_H_
13 #define CGRADIENTMODELSELECTION_H_
14 
15 #include <shogun/lib/config.h>
17 
20 
21 namespace shogun
22 {
23 
24 class GradientModelSelectionCostFunction;
25 
30 {
32 
33 public:
36 
46  CModelSelectionParameters* model_parameters=NULL);
47 
48  virtual ~CGradientModelSelection();
49 
56  virtual CParameterCombination* select_model(bool print_state=false);
57 
62  virtual const char* get_name() const { return "GradientModelSelection"; }
63 
68  virtual void set_minimizer(FirstOrderMinimizer* minimizer);
69 
70 private:
72  void init();
73 
74 protected:
75 
78 
86  virtual float64_t get_cost(SGVector<float64_t> model_vars, SGVector<float64_t> model_grads, void* func_data);
87 };
88 }
89 #endif /* CGRADIENTMODELSELECTION_H_ */
virtual CParameterCombination * select_model(bool print_state=false)
Model selection class which searches for the best model by a gradient-search.
virtual float64_t get_cost(SGVector< float64_t > model_vars, SGVector< float64_t > model_grads, void *func_data)
virtual void set_minimizer(FirstOrderMinimizer *minimizer)
Class to select parameters and their ranges for model selection. The structure is organized as a tree...
Abstract base class for model selection.
virtual const char * get_name() const
double float64_t
Definition: common.h:50
Machine Evaluation is an abstract class that evaluates a machine according to some criterion...
Class that holds ONE combination of parameters for a learning machine. The structure is organized as ...
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
The first order minimizer base class.

SHOGUN Machine Learning Toolbox - Documentation