public class UnderSamplingByMaskingMultiDataSetPreProcessor extends BaseUnderSamplingPreProcessor implements MultiDataSetPreProcessor
tbpttWindowSize
Constructor and Description |
---|
UnderSamplingByMaskingMultiDataSetPreProcessor(Map<Integer,Double> targetDist,
int windowSize)
The target distribution to approximate.
|
Modifier and Type | Method and Description |
---|---|
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
|
void |
preProcess(MultiDataSet multiDataSet)
Preprocess the MultiDataSet
|
adjustMasks, donotMaskAllMajorityWindows, donotMaskMinorityWindows
public UnderSamplingByMaskingMultiDataSetPreProcessor(Map<Integer,Double> targetDist, int windowSize)
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 tbpttpublic void overrideMinorityDefault(int index)
public void preProcess(MultiDataSet multiDataSet)
MultiDataSetPreProcessor
preProcess
in interface MultiDataSetPreProcessor
Copyright © 2019. All rights reserved.