daisy
.
For interpolation, the new factor level for x3
is sampled from the two given levels of x1 and x2 per feature.smote(task, rate, nn = 5L, standardize = TRUE, alt.logic = FALSE)
Task
]
The task.numeric(1)
]
Factor to upsample the smaller class.
Must be between 1 and Inf
,
where 1 means no oversampling and 2 would mean doubling the class size.integer(1)
]
Number of nearest neighbors to consider.
Default is 5.integer(1)
]
Standardize input variables before calculating the nearest neighbors
for data sets with numeric input variables only. For mixed variables
(numeric and factor) the gower distance is used and variables are
standardized anyway.
Default is TRUE
.integer(1)
]
Use an alternative logic for selection of minority class observations.
Instead of sampling a minority class element AND one of its nearest
neighbors, each minority class element is taken multiple times (depending
on rate) for the interpolation and only the corresponding nearest neighbor
is sampled.
Default is FALSE
.Task
].makeOverBaggingWrapper
,
makeUndersampleWrapper
,
oversample