Classes | Static Public Member Functions | Static Public Attributes | Static Private Member Functions | Static Private Attributes | List of all members
libsvm.svm Class Reference

Classes

class  decision_function
 

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_nr_sv (svm_model model)
 
static void svm_get_sv_indices (svm_model model, int[] indices)
 
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)
 

Static Public Attributes

static final int LIBSVM_VERSION =314
 
static final Random rand = new Random()
 

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 1291 of file svm.java.

Member Function Documentation

◆ atof()

static double libsvm.svm.atof ( String  s)
inlinestaticprivate

Definition at line 2519 of file svm.java.

◆ atoi()

static int libsvm.svm.atoi ( String  s)
inlinestaticprivate

Definition at line 2524 of file svm.java.

◆ multiclass_probability()

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

Definition at line 1681 of file svm.java.

◆ sigmoid_predict()

static double libsvm.svm.sigmoid_predict ( double  decision_value,
double  A,
double  B 
)
inlinestaticprivate

Definition at line 1671 of file svm.java.

◆ sigmoid_train()

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

Definition at line 1558 of file svm.java.

◆ solve_c_svc()

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

Definition at line 1314 of file svm.java.

◆ solve_epsilon_svr()

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

Definition at line 1425 of file svm.java.

◆ solve_nu_svc()

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

Definition at line 1346 of file svm.java.

◆ solve_nu_svr()

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

Definition at line 1458 of file svm.java.

◆ solve_one_class()

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

Definition at line 1397 of file svm.java.

◆ svm_binary_svc_probability()

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

Definition at line 1741 of file svm.java.

◆ svm_check_parameter()

static String libsvm.svm.svm_check_parameter ( svm_problem  prob,
svm_parameter  param 
)
inlinestatic

Definition at line 2675 of file svm.java.

◆ svm_check_probability_model()

static int libsvm.svm.svm_check_probability_model ( svm_model  model)
inlinestatic

Definition at line 2795 of file svm.java.

◆ svm_cross_validation()

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

Definition at line 2153 of file svm.java.

◆ svm_get_labels()

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

Definition at line 2273 of file svm.java.

◆ svm_get_nr_class()

static int libsvm.svm.svm_get_nr_class ( svm_model  model)
inlinestatic

Definition at line 2268 of file svm.java.

◆ svm_get_nr_sv()

static int libsvm.svm.svm_get_nr_sv ( svm_model  model)
inlinestatic

Definition at line 2287 of file svm.java.

◆ svm_get_sv_indices()

static void libsvm.svm.svm_get_sv_indices ( svm_model  model,
int []  indices 
)
inlinestatic

Definition at line 2280 of file svm.java.

◆ svm_get_svm_type()

static int libsvm.svm.svm_get_svm_type ( svm_model  model)
inlinestatic

Definition at line 2263 of file svm.java.

◆ svm_get_svr_probability()

static double libsvm.svm.svm_get_svr_probability ( svm_model  model)
inlinestatic

Definition at line 2292 of file svm.java.

◆ svm_group_classes()

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 
)
inlinestaticprivate

Definition at line 1853 of file svm.java.

◆ svm_load_model() [1/2]

static svm_model libsvm.svm.svm_load_model ( String  model_file_name) throws IOException
inlinestatic

Definition at line 2529 of file svm.java.

◆ svm_load_model() [2/2]

static svm_model libsvm.svm.svm_load_model ( BufferedReader  fp) throws IOException
inlinestatic

Definition at line 2534 of file svm.java.

◆ svm_predict()

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

Definition at line 2377 of file svm.java.

◆ svm_predict_probability()

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

Definition at line 2391 of file svm.java.

◆ svm_predict_values()

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

Definition at line 2304 of file svm.java.

◆ svm_save_model()

static void libsvm.svm.svm_save_model ( String  model_file_name,
svm_model  model 
) throws IOException
inlinestatic

Definition at line 2434 of file svm.java.

◆ svm_set_print_string_function()

static void libsvm.svm.svm_set_print_string_function ( svm_print_interface  print_func)
inlinestatic

Definition at line 2806 of file svm.java.

◆ svm_svr_probability()

static double libsvm.svm.svm_svr_probability ( svm_problem  prob,
svm_parameter  param 
)
inlinestaticprivate

Definition at line 1822 of file svm.java.

◆ svm_train()

static svm_model libsvm.svm.svm_train ( svm_problem  prob,
svm_parameter  param 
)
inlinestatic

Definition at line 1916 of file svm.java.

Member Data Documentation

◆ LIBSVM_VERSION

final int libsvm.svm.LIBSVM_VERSION =314
static

Definition at line 1295 of file svm.java.

◆ rand

final Random libsvm.svm.rand = new Random()
static

Definition at line 1296 of file svm.java.

◆ svm_print_stdout

svm_print_interface libsvm.svm.svm_print_stdout
staticprivate
Initial value:
= new svm_print_interface()
{
public void print(String s)
{
System.out.print(s);
System.out.flush();
}
}

Definition at line 1298 of file svm.java.

◆ svm_print_string

svm_print_interface libsvm.svm.svm_print_string = svm_print_stdout
staticprivate

Definition at line 1307 of file svm.java.


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


ml_classifiers
Author(s): Scott Niekum , Joshua Whitley
autogenerated on Mon Feb 28 2022 22:46:49