12 #ifndef _LIBLINEAR_H___
13 #define _LIBLINEAR_H___
79 liblinear_solver_type=st;
132 inline virtual const char*
get_name()
const {
return "LibLinear"; }
150 SG_ERROR(
"Please assign labels first!\n");
154 if (num_labels!=linear_term.
vlen)
156 SG_ERROR(
"Number of labels (%d) does not match number"
157 " of entries (%d) in linear term \n", num_labels,
188 void train_one(
const problem *prob,
const parameter *param,
double Cp,
double Cn);
189 void solve_l2r_l1l2_svc(
192 void solve_l1r_l2_svc(problem *prob_col,
double eps,
double Cp,
double Cn);
193 void solve_l1r_lr(
const problem *prob_col,
double eps,
double Cp,
double Cn);
219 #endif //_LIBLINEAR_H___
The class Labels models labels, i.e. class assignments of objects.
void set_C(float64_t c_neg, float64_t c_pos)
L2 regularized SVM with L2-loss using newton in the primal.
L1 regularized logistic regression.
void set_linear_term(SGVector< float64_t > linear_term)
L1 regularized SVM with L2-loss using dual coordinate descent.
Features that support dot products among other operations.
SGVector< float64_t > get_linear_term()
void set_bias_enabled(bool enable_bias)
void set_max_iterations(int32_t max_iter=1000)
L2 regularized linear logistic regression.
virtual void destroy_vector()
virtual EClassifierType get_classifier_type()
class to implement LibLinear
static T * clone_vector(const T *vec, int32_t len)
L2 regularized SVM with L2-loss using dual coordinate descent.
Class LinearMachine is a generic interface for all kinds of linear machines like classifiers.
LIBLINEAR_SOLVER_TYPE liblinear_solver_type
LIBLINEAR_SOLVER_TYPE get_liblinear_solver_type()
The class Features is the base class of all feature objects.
virtual bool train_machine(CFeatures *data=NULL)
virtual const char * get_name() const
int32_t get_max_iterations()
L2 regularized linear SVM with L1-loss using dual coordinate descent.
void set_epsilon(float64_t eps)
void set_liblinear_solver_type(LIBLINEAR_SOLVER_TYPE st)
SGVector< float64_t > m_linear_term
linear multi-class svm by Crammer and Singer