powered by
Removed observations that are part of tomek links.
tomek(df, var)
data.frame or tibble. Must have 1 factor variable and remaining numeric variables.
Character, name of variable containing factor variable.
A data.frame or tibble, depending on type of df.
df
All columns used in this function must be numeric with no missing data.
Tomek. Two modifications of cnn. IEEE Trans. Syst. Man Cybern., 6:769-772, 1976.
step_tomek() for step function of this method
step_tomek()
Other Direct Implementations: adasyn(), bsmote(), nearmiss(), smotenc(), smote()
adasyn()
bsmote()
nearmiss()
smotenc()
smote()
# NOT RUN { circle_numeric <- circle_example[, c("x", "y", "class")] res <- tomek(circle_numeric, var = "class") # }
Run the code above in your browser using DataLab