public class UnderSamplingByMaskingPreProcessor extends BaseUnderSamplingPreProcessor implements DataSetPreProcessor
tbpttWindowSize| Constructor and Description |
|---|
UnderSamplingByMaskingPreProcessor(double targetDist,
int windowSize)
The target distribution to approximate.
|
| Modifier and Type | Method and Description |
|---|---|
void |
overrideMinorityDefault()
Will change the default minority label from "1" to "0" and correspondingly the majority class from "0" to "1"
|
void |
preProcess(DataSet toPreProcess)
Pre process a dataset
|
adjustMasks, donotMaskAllMajorityWindows, donotMaskMinorityWindowspublic UnderSamplingByMaskingPreProcessor(double targetDist,
int windowSize)
targetDist - windowSize - Usually set to the size of the tbpttpublic void overrideMinorityDefault()
public void preProcess(DataSet toPreProcess)
DataSetPreProcessorpreProcess in interface DataSetPreProcessortoPreProcess - the data set to pre processCopyright © 2021. All rights reserved.