tomek | R Documentation |
Removed observations that are part of tomek links.
tomek(df, var)
df |
data.frame or tibble. Must have 1 factor variable and remaining numeric variables. |
var |
Character, name of variable containing factor variable. |
All columns used in this function must be numeric with no missing data.
A data.frame or tibble, depending on type of df
.
Tomek. Two modifications of cnn. IEEE Trans. Syst. Man Cybern., 6:769-772, 1976.
step_tomek()
for step function of this method
Other Direct Implementations:
adasyn()
,
bsmote()
,
nearmiss()
,
smotenc()
,
smote()
circle_numeric <- circle_example[, c("x", "y", "class")]
res <- tomek(circle_numeric, var = "class")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.