rus | R Documentation |
Function to create temporary training dataset using distribution implied by w.
rus(y_train, ir = 1)
y_train |
df on the target variable. |
ir |
Imbalance ratio. Specifies how many times the under-sampled majority instances are over minority instances. |
Following MATLAB, function samples observations of the minority class with replacement and observations of the majority class without replacement.
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.