12 #ifndef _SUBGRADIENTLPM_H___
13 #define _SUBGRADIENTLPM_H___
86 int32_t num_feat, int32_t num_vec, int32_t& num_active,
99 int32_t num_feat, int32_t num_vec, int32_t num_active,
112 void init(int32_t num_vec, int32_t num_feat);
118 inline virtual const char*
get_name()
const {
return "SubGradientLPM"; }
183 #endif //_SUBGRADIENTLPM_H___
virtual EClassifierType get_classifier_type()
void update_active(int32_t num_feat, int32_t num_vec)
virtual ~CSubGradientLPM()
Class CCplex to encapsulate access to the commercial cplex general purpose optimizer.
void compute_projection(int32_t num_feat, int32_t num_vec)
compute projection
float64_t autoselected_epsilon
float64_t compute_min_subgradient(int32_t num_feat, int32_t num_vec, int32_t num_active, int32_t num_bound)
void set_C(float64_t c_neg, float64_t c_pos)
The class Labels models labels, i.e. class assignments of objects.
void set_qpsize_max(int32_t q)
int32_t last_it_noimprovement
virtual bool train_machine(CFeatures *data=NULL)
void cleanup()
de-alloc helper arrays
Features that support dot products among other operations.
int32_t find_active(int32_t num_feat, int32_t num_vec, int32_t &num_active, int32_t &num_bound)
void init(int32_t num_vec, int32_t num_feat)
alloc helper arrays
void set_bias_enabled(bool enable_bias)
float64_t * sum_CXy_active
float64_t line_search(int32_t num_feat, int32_t num_vec)
performs a line search to determine step size
void set_epsilon(float64_t eps)
float64_t compute_objective(int32_t num_feat, int32_t num_vec)
compute svm objective
void set_qpsize(int32_t q)
Class SubGradientSVM trains a linear classifier called Linear Programming Machine, i.e. a SVM using a norm regularizer.
int32_t num_it_noimprovement
void update_projection(float64_t alpha, int32_t num_vec)
only computes updates on the projection
The class Features is the base class of all feature objects.
virtual const char * get_name() const