Class svm
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.ProstateFramework.libsvm.svm
-
public class svm extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
svm.decision_function
-
Field Summary
Fields Modifier and Type Field Description (package private) static java.lang.String[]
kernel_type_table
static int
LIBSVM_VERSION
static java.util.Random
rand
private static svm_print_interface
svm_print_stdout
private static svm_print_interface
svm_print_string
(package private) static java.lang.String[]
svm_type_table
-
Constructor Summary
Constructors Constructor Description svm()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static double
atof(java.lang.String s)
private static int
atoi(java.lang.String s)
(package private) static void
info(java.lang.String s)
private static void
multiclass_probability(int k, double[][] r, double[] p)
private static double
sigmoid_predict(double decision_value, double A, double B)
private static void
sigmoid_train(int l, double[] dec_values, double[] labels, double[] probAB)
private static void
solve_c_svc(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si, double Cp, double Cn)
private static void
solve_epsilon_svr(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
private static void
solve_nu_svc(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
private static void
solve_nu_svr(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
private static void
solve_one_class(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
private static void
svm_binary_svc_probability(svm_problem prob, svm_parameter param, double Cp, double Cn, double[] probAB)
static java.lang.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)
private static void
svm_group_classes(svm_problem prob, int[] nr_class_ret, int[][] label_ret, int[][] start_ret, int[][] count_ret, int[] perm)
static svm_model
svm_load_model(java.io.BufferedReader fp)
static svm_model
svm_load_model(java.lang.String model_file_name)
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(java.lang.String model_file_name, svm_model model)
static void
svm_set_print_string_function(svm_print_interface print_func)
private static double
svm_svr_probability(svm_problem prob, svm_parameter param)
static svm_model
svm_train(svm_problem prob, svm_parameter param)
(package private) static svm.decision_function
svm_train_one(svm_problem prob, svm_parameter param, double Cp, double Cn)
-
-
-
Field Detail
-
LIBSVM_VERSION
public static final int LIBSVM_VERSION
- See Also:
- Constant Field Values
-
rand
public static final java.util.Random rand
-
svm_print_stdout
private static svm_print_interface svm_print_stdout
-
svm_print_string
private static svm_print_interface svm_print_string
-
svm_type_table
static final java.lang.String[] svm_type_table
-
kernel_type_table
static final java.lang.String[] kernel_type_table
-
-
Method Detail
-
info
static void info(java.lang.String s)
-
solve_c_svc
private static void solve_c_svc(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si, double Cp, double Cn)
-
solve_nu_svc
private static void solve_nu_svc(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
-
solve_one_class
private static void solve_one_class(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
-
solve_epsilon_svr
private static void solve_epsilon_svr(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
-
solve_nu_svr
private static void solve_nu_svr(svm_problem prob, svm_parameter param, double[] alpha, Solver.SolutionInfo si)
-
svm_train_one
static svm.decision_function svm_train_one(svm_problem prob, svm_parameter param, double Cp, double Cn)
-
sigmoid_train
private static void sigmoid_train(int l, double[] dec_values, double[] labels, double[] probAB)
-
sigmoid_predict
private static double sigmoid_predict(double decision_value, double A, double B)
-
multiclass_probability
private static void multiclass_probability(int k, double[][] r, double[] p)
-
svm_binary_svc_probability
private static void svm_binary_svc_probability(svm_problem prob, svm_parameter param, double Cp, double Cn, double[] probAB)
-
svm_svr_probability
private static double svm_svr_probability(svm_problem prob, svm_parameter param)
-
svm_group_classes
private static void svm_group_classes(svm_problem prob, int[] nr_class_ret, int[][] label_ret, int[][] start_ret, int[][] count_ret, int[] perm)
-
svm_train
public static svm_model svm_train(svm_problem prob, svm_parameter param)
-
svm_cross_validation
public static void svm_cross_validation(svm_problem prob, svm_parameter param, int nr_fold, double[] target)
-
svm_get_svm_type
public static int svm_get_svm_type(svm_model model)
-
svm_get_nr_class
public static int svm_get_nr_class(svm_model model)
-
svm_get_labels
public static void svm_get_labels(svm_model model, int[] label)
-
svm_get_svr_probability
public static double svm_get_svr_probability(svm_model model)
-
svm_predict_values
public static double svm_predict_values(svm_model model, svm_node[] x, double[] dec_values)
-
svm_predict_probability
public static double svm_predict_probability(svm_model model, svm_node[] x, double[] prob_estimates)
-
svm_save_model
public static void svm_save_model(java.lang.String model_file_name, svm_model model) throws java.io.IOException
- Throws:
java.io.IOException
-
atof
private static double atof(java.lang.String s)
-
atoi
private static int atoi(java.lang.String s)
-
svm_load_model
public static svm_model svm_load_model(java.lang.String model_file_name) throws java.io.IOException
- Throws:
java.io.IOException
-
svm_load_model
public static svm_model svm_load_model(java.io.BufferedReader fp) throws java.io.IOException
- Throws:
java.io.IOException
-
svm_check_parameter
public static java.lang.String svm_check_parameter(svm_problem prob, svm_parameter param)
-
svm_check_probability_model
public static int svm_check_probability_model(svm_model model)
-
svm_set_print_string_function
public static void svm_set_print_string_function(svm_print_interface print_func)
-
-