SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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  * Copyright (C) 2012 Jacob Walker
8  */
9 
10 #ifndef CGRADIENTMODELSELECTION_H_
11 #define CGRADIENTMODELSELECTION_H_
12 
15 #include <shogun/base/DynArray.h>
17 
18 
19 namespace shogun
20 {
21 
27 {
28 
29 public:
30 
36  CMachineEvaluation* machine_eval);
37 
40 
42  virtual ~CGradientModelSelection();
43 
50  virtual CParameterCombination* select_model(bool print_state=false);
51 
57  inline virtual const char* get_name() const {return "GradientModelSelection";}
58 
64 
70 
77 
84 
85 private:
86 
101  static double nlopt_function(unsigned n, const double *x, double *grad,
102  void *func_data);
103 
104  void test_gradients();
105 
107  void init();
108 
109 protected:
110 
114  {
117 
120 
123  };
124 
127 
130 
133 
134 };
135 
136 }
137 
138 #endif /* CGRADIENTMODELSELECTION_H_ */

SHOGUN Machine Learning Toolbox - Documentation