se.lth.cs.nlp.nlputils.ml.glue.adapted_libsvm
Class svm

java.lang.Object
  extended by se.lth.cs.nlp.nlputils.ml.glue.adapted_libsvm.svm

public class svm
extends Object


Nested Class Summary
(package private) static class svm.decision_function
           
 
Field Summary
(package private) static String[] kernel_type_table
           
(package private) static String[] svm_type_table
           
 
Constructor Summary
svm()
           
 
Method Summary
static int svm_check_probability_model(svm_model model)
           
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 svm_model svm_load_model(InputStream is)
           
static svm_model svm_load_model(String model_file_name)
           
static double svm_predict_probability(svm_model model, svm_node[] x, double[] prob_estimates)
           
static double svm_predict_restricted(svm_model model, svm_node[] x, int[] allowed)
           
static void svm_predict_values(svm_model model, svm_node[] x, double[] dec_values)
           
static double svm_predict(svm_model model, svm_node[] x)
           
static void svm_save_model(String model_file_name, svm_model model)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

svm_type_table

static final String[] svm_type_table

kernel_type_table

static final String[] kernel_type_table
Constructor Detail

svm

public svm()
Method Detail

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_predict_values

public static void svm_predict_values(svm_model model,
                                      svm_node[] x,
                                      double[] dec_values)

svm_predict_restricted

public static double svm_predict_restricted(svm_model model,
                                            svm_node[] x,
                                            int[] allowed)

svm_predict

public static double svm_predict(svm_model model,
                                 svm_node[] x)

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(String model_file_name,
                                  svm_model model)
                           throws IOException
Throws:
IOException

svm_load_model

public static svm_model svm_load_model(String model_file_name)
                                throws IOException
Throws:
IOException

svm_load_model

public static svm_model svm_load_model(InputStream is)
                                throws IOException
Throws:
IOException

svm_check_probability_model

public static int svm_check_probability_model(svm_model model)