Description Usage Arguments Details Value Examples
RUS
returns a more balanced version of a data set after application
of the Random Under-Sampling algorithm.
1 |
data |
A data frame containing the predictors and the outcome. The
outcome must be both a binary valued factor and the last column of
|
perc_maj |
The desired % size of the majority class relative to the
whole data set. For instance, if |
perc_under |
% of examples to select from the majority class. If
specified |
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 Random Under-Sampling algorithm creates a new data set containing all examples from the minority class plus a random selection of examples from the majority class.
A data frame containing a more balanced version of the input data set after application of the Random Under-Sampling algorithm. The original order of the examples is preserved.
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.