Classes | Static Public Member Functions | Public Attributes | Static Public Attributes | Static Package Functions | Static Package Attributes | Static Private Member Functions | Static Private Attributes
libsvm.svm Class Reference

List of all members.

Classes

class  decision_function
class  svm_model
class  svm_node
class  svm_parameter
class  svm_problem

Static Public Member Functions

static String svm_check_parameter (svm_problem prob, svm_parameter param)
static int svm_check_probability_model (svm_model model)
static void svm_cross_validation (svm_problem prob, svm_parameter param, int nr_fold, double[] target)
static void svm_get_labels (svm_model model, int[] label)
static int svm_get_nr_class (svm_model model)
static int svm_get_svm_type (svm_model model)
static double svm_get_svr_probability (svm_model model)
static svm_model svm_load_model (String model_file_name) throws IOException
static svm_model svm_load_model (BufferedReader fp) throws IOException
static double svm_predict (svm_model model, svm_node[] x)
static double svm_predict_probability (svm_model model, svm_node[] x, double[] prob_estimates)
static double svm_predict_values (svm_model model, svm_node[] x, double[] dec_values)
static void svm_save_model (String model_file_name, svm_model model) throws IOException
static void svm_set_print_string_function (svm_print_interface print_func)
static svm_model svm_train (svm_problem prob, svm_parameter param)

Public Attributes

list KERNEL_TYPE = ['LINEAR', 'POLY', 'RBF', 'SIGMOID', 'PRECOMPUTED']
tuple libsvm = CDLL(find_library('svm'))
tuple PRINT_STRING_FUN = CFUNCTYPE(None, c_char_p)
list SVM_TYPE = ['C_SVC', 'NU_SVC', 'ONE_CLASS', 'EPSILON_SVR', 'NU_SVR' ]

Static Public Attributes

static final int LIBSVM_VERSION = 300

Static Package Functions

static void info (String s)
static decision_function svm_train_one (svm_problem prob, svm_parameter param, double Cp, double Cn)

Static Package Attributes

static final String kernel_type_table []
static final String svm_type_table []

Static Private Member Functions

static double atof (String s)
static int atoi (String s)
static void multiclass_probability (int k, double[][] r, double[] p)
static double sigmoid_predict (double decision_value, double A, double B)
static void sigmoid_train (int l, double[] dec_values, double[] labels, double[] probAB)
static void solve_c_svc (svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si, double Cp, double Cn)
static void solve_epsilon_svr (svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
static void solve_nu_svc (svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
static void solve_nu_svr (svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
static void solve_one_class (svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
static void svm_binary_svc_probability (svm_problem prob, svm_parameter param, double Cp, double Cn, double[] probAB)
static void svm_group_classes (svm_problem prob, int[] nr_class_ret, int[][] label_ret, int[][] start_ret, int[][] count_ret, int[] perm)
static double svm_svr_probability (svm_problem prob, svm_parameter param)

Static Private Attributes

static svm_print_interface svm_print_stdout
static svm_print_interface svm_print_string = svm_print_stdout

Detailed Description

Definition at line 1278 of file svm.java.


Member Function Documentation

static double libsvm.svm.atof ( String  s) [inline, static, private]

Definition at line 2482 of file svm.java.

static int libsvm.svm.atoi ( String  s) [inline, static, private]

Definition at line 2487 of file svm.java.

static void libsvm.svm.info ( String  s) [inline, static, package]

Definition at line 1295 of file svm.java.

static void libsvm.svm.multiclass_probability ( int  k,
double  r[][],
double[]  p 
) [inline, static, private]

Definition at line 1667 of file svm.java.

static double libsvm.svm.sigmoid_predict ( double  decision_value,
double  A,
double  B 
) [inline, static, private]

Definition at line 1657 of file svm.java.

static void libsvm.svm.sigmoid_train ( int  l,
double[]  dec_values,
double[]  labels,
double[]  probAB 
) [inline, static, private]

Definition at line 1544 of file svm.java.

static void libsvm.svm.solve_c_svc ( svm_problem  prob,
svm_parameter  param,
double[]  alpha,
Solver.SolutionInfo  si,
double  Cp,
double  Cn 
) [inline, static, private]

Definition at line 1300 of file svm.java.

static void libsvm.svm.solve_epsilon_svr ( svm_problem  prob,
svm_parameter  param,
double[]  alpha,
Solver.SolutionInfo  si 
) [inline, static, private]

Definition at line 1411 of file svm.java.

static void libsvm.svm.solve_nu_svc ( svm_problem  prob,
svm_parameter  param,
double[]  alpha,
Solver.SolutionInfo  si 
) [inline, static, private]

Definition at line 1332 of file svm.java.

static void libsvm.svm.solve_nu_svr ( svm_problem  prob,
svm_parameter  param,
double[]  alpha,
Solver.SolutionInfo  si 
) [inline, static, private]

Definition at line 1444 of file svm.java.

static void libsvm.svm.solve_one_class ( svm_problem  prob,
svm_parameter  param,
double[]  alpha,
Solver.SolutionInfo  si 
) [inline, static, private]

Definition at line 1383 of file svm.java.

static void libsvm.svm.svm_binary_svc_probability ( svm_problem  prob,
svm_parameter  param,
double  Cp,
double  Cn,
double[]  probAB 
) [inline, static, private]

Definition at line 1727 of file svm.java.

static String libsvm.svm.svm_check_parameter ( svm_problem  prob,
svm_parameter  param 
) [inline, static]

Definition at line 2638 of file svm.java.

static int libsvm.svm.svm_check_probability_model ( svm_model  model) [inline, static]

Definition at line 2758 of file svm.java.

static void libsvm.svm.svm_cross_validation ( svm_problem  prob,
svm_parameter  param,
int  nr_fold,
double[]  target 
) [inline, static]

Definition at line 2128 of file svm.java.

static void libsvm.svm.svm_get_labels ( svm_model  model,
int[]  label 
) [inline, static]

Definition at line 2248 of file svm.java.

static int libsvm.svm.svm_get_nr_class ( svm_model  model) [inline, static]

Definition at line 2243 of file svm.java.

static int libsvm.svm.svm_get_svm_type ( svm_model  model) [inline, static]

Definition at line 2238 of file svm.java.

static double libsvm.svm.svm_get_svr_probability ( svm_model  model) [inline, static]

Definition at line 2255 of file svm.java.

static void libsvm.svm.svm_group_classes ( svm_problem  prob,
int[]  nr_class_ret,
int  label_ret[][],
int  start_ret[][],
int  count_ret[][],
int[]  perm 
) [inline, static, private]

Definition at line 1839 of file svm.java.

static svm_model libsvm.svm.svm_load_model ( String  model_file_name) throws IOException [inline, static]

Definition at line 2492 of file svm.java.

static svm_model libsvm.svm.svm_load_model ( BufferedReader  fp) throws IOException [inline, static]

Definition at line 2497 of file svm.java.

static double libsvm.svm.svm_predict ( svm_model  model,
svm_node[]  x 
) [inline, static]

Definition at line 2340 of file svm.java.

static double libsvm.svm.svm_predict_probability ( svm_model  model,
svm_node[]  x,
double[]  prob_estimates 
) [inline, static]

Definition at line 2354 of file svm.java.

static double libsvm.svm.svm_predict_values ( svm_model  model,
svm_node[]  x,
double[]  dec_values 
) [inline, static]

Definition at line 2267 of file svm.java.

static void libsvm.svm.svm_save_model ( String  model_file_name,
svm_model  model 
) throws IOException [inline, static]

Definition at line 2397 of file svm.java.

static void libsvm.svm.svm_set_print_string_function ( svm_print_interface  print_func) [inline, static]

Definition at line 2769 of file svm.java.

static double libsvm.svm.svm_svr_probability ( svm_problem  prob,
svm_parameter  param 
) [inline, static, private]

Definition at line 1808 of file svm.java.

static svm_model libsvm.svm.svm_train ( svm_problem  prob,
svm_parameter  param 
) [inline, static]

Definition at line 1902 of file svm.java.

static decision_function libsvm.svm.svm_train_one ( svm_problem  prob,
svm_parameter  param,
double  Cp,
double  Cn 
) [inline, static, package]

Definition at line 1486 of file svm.java.


Member Data Documentation

Definition at line 22 of file svm.py.

final String libsvm.svm.kernel_type_table[] [static, package]
Initial value:
        {
                "linear","polynomial","rbf","sigmoid","precomputed"
        }

Definition at line 2392 of file svm.java.

tuple libsvm.svm::libsvm = CDLL(find_library('svm'))

Definition at line 10 of file svm.py.

final int libsvm.svm.LIBSVM_VERSION = 300 [static]

Definition at line 1282 of file svm.java.

tuple libsvm.svm.PRINT_STRING_FUN = CFUNCTYPE(None, c_char_p)

Definition at line 26 of file svm.py.

Initial value:
 new svm_print_interface()
        {
                public void print(String s)
                {
                        System.out.print(s);
                        System.out.flush();
                }
        }

Definition at line 1284 of file svm.java.

Definition at line 1293 of file svm.java.

Definition at line 21 of file svm.py.

final String libsvm.svm.svm_type_table[] [static, package]
Initial value:
        {
                "c_svc","nu_svc","one_class","epsilon_svr","nu_svr",
        }

Definition at line 2387 of file svm.java.


The documentation for this class was generated from the following files:


libsvm3
Author(s): various
autogenerated on Wed Nov 27 2013 11:36:23