Class UnderSamplingByMaskingMultiDataSetPreProcessor

    • Constructor Detail

      • UnderSamplingByMaskingMultiDataSetPreProcessor

        public UnderSamplingByMaskingMultiDataSetPreProcessor​(Map<Integer,​Double> targetDist,
                                                              int windowSize)
        The target distribution to approximate. Valid values are between (0,0.5].
        Parameters:
        targetDist - Key is index of label in multidataset to apply preprocessor. Value is the target dist for that index.
        windowSize - Usually set to the size of the tbptt
    • Method Detail

      • overrideMinorityDefault

        public void overrideMinorityDefault​(int index)
        Will change the default minority label from "1" to "0" and correspondingly the majority class from "0" to "1" for the label at the index specified