Description Usage Arguments Value Examples
Given a two-class dataset, it computes its imbalance ratio as {Size of minority class}/{Size of majority class}
1 | imbalanceRatio(dataset, classAttr = "Class")
|
dataset |
A target |
classAttr |
A |
A real number in [0,1] representing the imbalance ratio of
dataset
1 2 3 | data(glass0)
imbalanceRatio(glass0, classAttr = "Class")
|
[1] 0.4861111
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.