12 #ifndef _MULTICLASSOCAS_H___
13 #define _MULTICLASSOCAS_H___
20 #include <shogun/lib/external/libocas.h>
27 class CMulticlassOCAS :
public CLinearMulticlassMachine
40 CMulticlassOCAS(
float64_t C, CDotFeatures* features, CLabels* labs);
43 virtual ~CMulticlassOCAS();
46 virtual const
char* get_name()
const
48 return "MulticlassOCAS";
62 inline
float64_t get_C()
const {
return m_C; }
75 inline
float64_t get_epsilon()
const {
return m_epsilon; }
80 inline void set_max_iter(int32_t max_iter)
83 m_max_iter = max_iter;
88 inline int32_t get_max_iter()
const {
return m_max_iter; }
93 inline void set_method(int32_t method)
95 ASSERT(method==0 || method==1)
101 inline int32_t get_method()
const {
return m_method; }
106 inline void set_buf_size(int32_t buf_size)
109 m_buf_size = buf_size;
114 inline int32_t get_buf_size()
const {
return m_buf_size; }
119 virtual bool train_machine(CFeatures* data = NULL);
126 float64_t *alpha, uint32_t nSel,
void* user_data);
129 static int msvm_full_add_new_cut(
float64_t *new_col_H, uint32_t *new_cut,
130 uint32_t nSel,
void* user_data);
133 static int msvm_full_compute_output(
float64_t *output,
void* user_data);
139 static void msvm_print(ocas_return_value_T value);
144 void register_parameters();
#define MACHINE_PROBLEM_TYPE(PT)
all of classes and functions are contained in the shogun namespace
void set_epsilon(float *begin, float max)