#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <float.h>
#include <string.h>
#include <stdarg.h>
#include "svm.h"
Include dependency graph for svm.cpp:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Classes | |
class | Cache |
struct | Cache::head_t |
class | Kernel |
class | Solver |
struct | Solver::SolutionInfo |
class | Solver_NU |
class | SVC_Q |
class | ONE_CLASS_Q |
class | SVR_Q |
struct | decision_function |
struct | svm_model |
Defines | |
#define | INF HUGE_VAL |
#define | Malloc(type, n) (type *)malloc((n)*sizeof(type)) |
Typedefs | |
typedef float | Qfloat |
typedef signed char | schar |
Functions | |
template<class T> | |
T | min (T x, T y) |
template<class T> | |
T | max (T x, T y) |
template<class T> | |
void | swap (T &x, T &y) |
template<class S, class T> | |
void | clone (T *&dst, S *src, int n) |
void | info (char *fmt,...) |
void | info_flush () |
static void | solve_c_svc (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si, double Cp, double Cn) |
static void | solve_nu_svc (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si) |
static void | solve_one_class (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si) |
static void | solve_epsilon_svr (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si) |
static void | solve_nu_svr (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si) |
decision_function | svm_train_one (const svm_problem *prob, const svm_parameter *param, double Cp, double Cn) |
void | sigmoid_train (int l, const double *dec_values, const double *labels, double &A, double &B) |
double | sigmoid_predict (double decision_value, double A, double B) |
void | multiclass_probability (int k, double **r, double *p) |
void | svm_binary_svc_probability (const svm_problem *prob, const svm_parameter *param, double Cp, double Cn, double &probA, double &probB) |
double | svm_svr_probability (const svm_problem *prob, const svm_parameter *param) |
svm_model * | svm_train (const svm_problem *prob, const svm_parameter *param) |
void | svm_cross_validation (const svm_problem *prob, const svm_parameter *param, int nr_fold, double *target) |
int | svm_get_svm_type (const svm_model *model) |
int | svm_get_nr_class (const svm_model *model) |
void | svm_get_labels (const svm_model *model, int *label) |
double | svm_get_svr_probability (const svm_model *model) |
void | svm_predict_values (const svm_model *model, const svm_node *x, double *dec_values) |
double | svm_predict (const svm_model *model, const svm_node *x) |
double | svm_predict_probability (const svm_model *model, const svm_node *x, double *prob_estimates) |
int | svm_save_model (const char *model_file_name, const svm_model *model) |
svm_model * | svm_load_model (const char *model_file_name) |
void | svm_destroy_model (svm_model *model) |
void | svm_destroy_param (svm_parameter *param) |
const char * | svm_check_parameter (const svm_problem *prob, const svm_parameter *param) |
int | svm_check_probability_model (const svm_model *model) |
Variables | |
const char * | svm_type_table [] |
const char * | kernel_type_table [] |