Interface Stratification

    • Method Detail

      • reset

        void reset()
        Resets the scheme.
      • stratify

        <T> List<Binnable<T>> stratify​(List<Binnable<T>> data,
                                       int folds)
        Stratifies the list of binnable data, using the value of the items. Creates copy of list, then sorts list items according to their values. Based on Weka's Instances.stratify(int) method.
        Type Parameters:
        T - the payload type
        data - the data to stratify
        folds - the number of folds
        the stratified data