svm.cpp File Reference

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <float.h>
#include <string.h>
#include <stdarg.h>
#include <locale.h>
#include "svm.h"

Include dependency graph for svm.cpp:

Go to the source code of this file.

Namespaces

namespace  celeste

Classes

class  celeste::Cache
struct  celeste::Cache::head_t
class  celeste::QMatrix
class  celeste::Kernel
class  celeste::Solver
struct  celeste::Solver::SolutionInfo
class  celeste::Solver_NU
class  celeste::SVC_Q
class  celeste::ONE_CLASS_Q
class  celeste::SVR_Q
struct  celeste::decision_function
struct  celeste::svm_model

Defines

#define INF   HUGE_VAL
#define TAU   1e-12
#define Malloc(type, n)   (type *)malloc((n)*sizeof(type))

Typedefs

typedef float celeste::Qfloat
typedef signed char celeste::schar

Functions

template<class T>
celeste::min (T x, T y)
template<class T>
celeste::max (T x, T y)
template<class T>
void celeste::swap (T &x, T &y)
template<class S, class T>
void celeste::clone (T *&dst, S *src, int n)
double celeste::powi (double base, int times)
void celeste::info (const char *fmt,...)
void celeste::info_flush ()
static void celeste::solve_c_svc (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si, double Cp, double Cn)
static void celeste::solve_nu_svc (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si)
static void celeste::solve_one_class (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si)
static void celeste::solve_epsilon_svr (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si)
static void celeste::solve_nu_svr (const svm_problem *prob, const svm_parameter *param, double *alpha, Solver::SolutionInfo *si)
decision_function celeste::svm_train_one (const svm_problem *prob, const svm_parameter *param, double Cp, double Cn)
void celeste::sigmoid_train (int l, const double *dec_values, const double *labels, double &A, double &B)
double celeste::sigmoid_predict (double decision_value, double A, double B)
void celeste::multiclass_probability (int k, double **r, double *p)
void celeste::svm_binary_svc_probability (const svm_problem *prob, const svm_parameter *param, double Cp, double Cn, double &probA, double &probB)
double celeste::svm_svr_probability (const svm_problem *prob, const svm_parameter *param)
void celeste::svm_group_classes (const svm_problem *prob, int *nr_class_ret, int **label_ret, int **start_ret, int **count_ret, int *perm)
svm_model * celeste::svm_train (const svm_problem *prob, const svm_parameter *param)
void celeste::svm_cross_validation (const svm_problem *prob, const svm_parameter *param, int nr_fold, double *target)
int celeste::svm_get_svm_type (const svm_model *model)
int celeste::svm_get_nr_class (const svm_model *model)
void celeste::svm_get_labels (const svm_model *model, int *label)
double celeste::svm_get_svr_probability (const svm_model *model)
void celeste::svm_predict_values (const svm_model *model, const svm_node *x, double *dec_values)
double celeste::svm_predict (const svm_model *model, const svm_node *x)
double celeste::svm_predict_probability (const svm_model *model, const svm_node *x, double *prob_estimates)
int celeste::svm_save_model (const char *model_file_name, const svm_model *model)
svm_model * celeste::svm_load_model (const char *model_file_name)
void celeste::svm_destroy_model (svm_model *model)
void celeste::svm_destroy_param (svm_parameter *param)
const char * celeste::svm_check_parameter (const svm_problem *prob, const svm_parameter *param)
int celeste::svm_check_probability_model (const svm_model *model)

Variables

const char * celeste::svm_type_table []
const char * celeste::kernel_type_table []


Define Documentation

#define INF   HUGE_VAL

Definition at line 73 of file svm.cpp.

Referenced by celeste::Solver_NU::calculate_rho(), celeste::Solver::calculate_rho(), celeste::Solver_NU::do_shrinking(), celeste::Solver::do_shrinking(), celeste::Solver_NU::select_working_set(), and celeste::Solver::select_working_set().

#define Malloc ( type,
 )     (type *)malloc((n)*sizeof(type))

Definition at line 75 of file svm.cpp.

Referenced by celeste::multiclass_probability(), celeste::sigmoid_train(), celeste::svm_binary_svc_probability(), celeste::svm_check_parameter(), celeste::svm_cross_validation(), celeste::svm_group_classes(), celeste::svm_load_model(), celeste::svm_predict(), celeste::svm_predict_probability(), celeste::svm_predict_values(), celeste::svm_svr_probability(), celeste::svm_train(), and celeste::svm_train_one().

#define TAU   1e-12

Definition at line 74 of file svm.cpp.

Referenced by celeste::Solver_NU::select_working_set(), celeste::Solver::select_working_set(), and celeste::Solver::Solve().


Generated on 27 Nov 2014 for Hugintrunk by  doxygen 1.4.7