Class AbstractHoldout

    • Field Detail

      • labels

        protected java.util.ArrayList<ClassLabel> labels
        Labels in the current data set.
      • labelcol

        protected int labelcol
        Column containing the class labels.
    • Constructor Detail

      • AbstractHoldout

        public AbstractHoldout()
    • Method Detail

      • initialize

        public void initialize​(MultipleObjectsBundle bundle)
        Description copied from interface: Holdout
        Initialize the holdout procedure for a data set.
        Specified by:
        initialize in interface Holdout
        Parameters:
        bundle - Data set bundle
      • getLabels

        public java.util.ArrayList<ClassLabel> getLabels()
        Description copied from interface: Holdout
        Get the sorted class labels present in this data set. For indexing into assignment arrays.
        Specified by:
        getLabels in interface Holdout
        Returns:
        Class labels
      • findClassLabelColumn

        public static int findClassLabelColumn​(MultipleObjectsBundle bundle)
        Find the class label column in the given data set.
        Parameters:
        bundle - Bundle
        Returns:
        Class label column
      • allClassLabels

        public static java.util.ArrayList<ClassLabel> allClassLabels​(MultipleObjectsBundle bundle)
        Get an array of all class labels in a given data set.
        Parameters:
        bundle - Bundle
        Returns:
        Class labels.
      • allClassLabels

        public static java.util.ArrayList<ClassLabel> allClassLabels​(MultipleObjectsBundle bundle,
                                                                     int col)
        Get an array of all class labels in a given data set.
        Parameters:
        bundle - Bundle
        col - Column
        Returns:
        Class labels.