ext/numo/liblinear/src/linear.h in numo-liblinear-2.0.0 vs ext/numo/liblinear/src/linear.h in numo-liblinear-2.1.0

- old
+ new

@@ -1,9 +1,9 @@ #ifndef _LIBLINEAR_H #define _LIBLINEAR_H -#define LIBLINEAR_VERSION 241 +#define LIBLINEAR_VERSION 244 #ifdef __cplusplus extern "C" { #endif @@ -28,11 +28,11 @@ struct parameter { int solver_type; /* these are for training only */ - double eps; /* stopping criteria */ + double eps; /* stopping tolerance */ double C; int nr_weight; int *weight_label; double* weight; double p; @@ -42,15 +42,15 @@ }; struct model { struct parameter param; - int nr_class; /* number of classes */ + int nr_class; /* number of classes */ int nr_feature; double *w; - int *label; /* label of each class */ + int *label; /* label of each class */ double bias; - double rho; /* one-class SVM only */ + double rho; /* one-class SVM only */ }; struct model* train(const struct problem *prob, const struct parameter *param); void cross_validation(const struct problem *prob, const struct parameter *param, int nr_fold, double *target); void find_parameters(const struct problem *prob, const struct parameter *param, int nr_fold, double start_C, double start_p, double *best_C, double *best_p, double *best_score);