Decrease the observations in a task
or a ResampleInstance
to a given percentage of observations.
Arguments
- obj
(Task | ResampleInstance)
Input data or aResampleInstance
.- perc
(
numeric(1)
)
Percentage from (0, 1). Default is 1.- stratify
(
logical(1)
)
Only for classification: Should the downsampled data be stratified according to the target classes? Default isFALSE
.
See also
Other downsample:
makeDownsampleWrapper()