SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
StochasticSOSVM.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 Shell Hu
8  * Copyright (C) 2013 Shell Hu
9  */
10 
11 #ifndef __STOCHASTIC_SOSVM_H__
12 #define __STOCHASTIC_SOSVM_H__
13 
14 #include <shogun/lib/config.h>
15 
17 
18 namespace shogun
19 {
20 
33 {
34 public:
37 
46  bool do_weighted_averaging = true, bool verbose = false);
47 
50 
52  virtual const char* get_name() const { return "StochasticSOSVM"; }
53 
59 
61  float64_t get_lambda() const;
62 
67  void set_lambda(float64_t lbda);
68 
70  int32_t get_num_iter() const;
71 
76  void set_num_iter(int32_t num_iter);
77 
79  int32_t get_debug_multiplier() const;
80 
85  void set_debug_multiplier(int32_t multiplier);
86 
88  uint32_t get_rand_seed() const;
89 
94  void set_rand_seed(uint32_t rand_seed);
95 
96 protected:
102  virtual bool train_machine(CFeatures* data = NULL);
103 
104 private:
106  void init();
107 
108 private:
110  float64_t m_lambda;
111 
113  int32_t m_num_iter;
114 
116  bool m_do_weighted_averaging;
117 
119  uint32_t m_rand_seed;
120 
127  int32_t m_debug_multiplier;
128 
129 }; /* CStochasticSOSVM */
130 
131 } /* namespace shogun */
132 
133 #endif

SHOGUN Machine Learning Toolbox - Documentation