12 #ifndef _SUBGRADIENTSVM_H___
13 #define _SUBGRADIENTSVM_H___
118 int32_t num_feat, int32_t num_vec, int32_t& num_active,
131 int32_t num_feat, int32_t num_vec, int32_t num_active,
144 void init(int32_t num_vec, int32_t num_feat);
150 inline virtual const char*
get_name()
const {
return "SubGradientSVM"; }
float64_t compute_objective(int32_t num_feat, int32_t num_vec)
compute svm objective
void compute_projection(int32_t num_feat, int32_t num_vec)
compute projection
void update_projection(float64_t alpha, int32_t num_vec)
only computes updates on the projection
void set_bias_enabled(bool enable_bias)
virtual EClassifierType get_classifier_type()
The class Labels models labels, i.e. class assignments of objects.
virtual bool train_machine(CFeatures *data=NULL)
float64_t line_search(int32_t num_feat, int32_t num_vec)
performs a line search to determine step size
virtual const char * get_name() const
int32_t num_it_noimprovement
Features that support dot products among other operations.
virtual ~CSubGradientSVM()
void set_epsilon(float64_t eps)
void cleanup()
de-alloc helper arrays
float64_t * sum_CXy_active
float64_t autoselected_epsilon
void set_qpsize_max(int32_t q)
int32_t find_active(int32_t num_feat, int32_t num_vec, int32_t &num_active, int32_t &num_bound)
Class LinearMachine is a generic interface for all kinds of linear machines like classifiers.
void set_qpsize(int32_t q)
The class Features is the base class of all feature objects.
void update_active(int32_t num_feat, int32_t num_vec)
void set_C(float64_t c_neg, float64_t c_pos)
float64_t compute_min_subgradient(int32_t num_feat, int32_t num_vec, int32_t num_active, int32_t num_bound)
int32_t last_it_noimprovement