41 #define LIBSVM_VERSION 311
47 extern int libsvm_version;
72 enum { C_SVC, NU_SVC, ONE_CLASS, EPSILON_SVR, NU_SVR };
73 enum { LINEAR, POLY, RBF, SIGMOID, PRECOMPUTED };
128 svm_cross_validation(
const struct svm_problem* prob,
134 svm_save_model(
const char* model_file_name,
const struct svm_model* model);
137 svm_load_model(
const char* model_file_name);
140 svm_get_svm_type(
const struct svm_model* model);
143 svm_get_nr_class(
const struct svm_model* model);
149 svm_get_svr_probability(
const struct svm_model* model);
152 svm_predict_values(
const struct svm_model* model,
159 svm_predict_probability(
const struct svm_model* model,
161 double* prob_estimates);
164 svm_free_model_content(
struct svm_model* model_ptr);
167 svm_free_and_destroy_model(
struct svm_model** model_ptr_ptr);
176 svm_check_probability_model(
const struct svm_model* model);
179 svm_set_print_string_function(
void (*print_func)(
const char*));