Package elki.svm

Class AbstractSingleSVM

  • Direct Known Subclasses:
    AbstractSVC, AbstractSVR

    public abstract class AbstractSingleSVM
    extends java.lang.Object
    • Field Detail

      • eps

        protected double eps
      • shrinking

        protected boolean shrinking
      • cache_size

        protected double cache_size
    • Constructor Detail

      • AbstractSingleSVM

        public AbstractSingleSVM​(double eps,
                                 boolean shrinking,
                                 double cache_size)
    • Method Detail

      • set_weights

        public void set_weights​(double Cp,
                                double Cn)
      • shuffledIndex

        public static int[] shuffledIndex​(int[] perm,
                                          int l)
        Build a shuffled index array.
        Parameters:
        perm - Array storing the permutation
        l - Size
      • makeFolds

        public static int[] makeFolds​(int l,
                                      int nr_fold)
      • stratifiedFolds

        public static int[] stratifiedFolds​(DataSet x,
                                            int nr_fold,
                                            int[] perm)
      • groupClasses

        protected static int groupClasses​(DataSet x,
                                          int[][] group_ret,
                                          int[] perm)
      • nonzero

        public static boolean nonzero​(double v)
      • getLogger

        protected abstract Logging getLogger()