Description Usage Arguments Details Value References
ENN
removes the examples that are misclassified by their k
nearest neighbours.
1 |
data |
A data frame containing the predictors and the outcome. The
predictors must be numeric and the outcome must be both a binary valued
factor and the last column of |
remove_class |
Examples from |
k |
Number of nearest neighbours to take into account. |
classes |
A named vector identifying the majority and the minority classes. The names must be "Majority" and "Minority". This argument is only useful if the function is called inside another sampling function. |
The default behaviour of ENN
is to remove examples from the majority
class that are misclassified by their k
nearest neighbours, however,
the user can modify this and select to remove only examples from the
minority class or remove examples from both classes.
A data frame containing a clean version of the input data set after application of the Edited Nearest Neighbours algorithm.
Wilson, D. L. (1972). Asymptotic properties of nearest neighbor rules using edited data. IEEE Transactions on Systems, Man, and Cybernetics, 2(3), 408-421.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.