Class svm


  • public class svm
    extends java.lang.Object
    • Field Detail

      • rand

        public static final java.util.Random rand
      • svm_type_table

        static final java.lang.String[] svm_type_table
      • kernel_type_table

        static final java.lang.String[] kernel_type_table
    • Constructor Detail

      • svm

        public svm()
    • Method Detail

      • info

        static void info​(java.lang.String s)
      • 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_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_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_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)