se.lth.cs.nlp.nlputils.ml.glue.adapted_libsvm
Class svm
java.lang.Object
se.lth.cs.nlp.nlputils.ml.glue.adapted_libsvm.svm
public class svm
- extends Object
Constructor Summary |
svm()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
svm_type_table
static final String[] svm_type_table
kernel_type_table
static final String[] kernel_type_table
svm
public svm()
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)