Description Usage Arguments Value References
NCL
removes examples from majority class that are either
misclassified by their k
nearest neighbours or contributed to the
misclassification of examples from minority class.
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 |
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. |
A data frame containing a clean version of the input data set after application of the Neighbourhood Cleaning Rule algorithm.
Laurikkala, J. (2001, July). Improving identification of difficult small classes by balancing class distribution. In Conference on Artificial Intelligence in Medicine in Europe (pp. 63-66). Springer, Berlin, Heidelberg.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.