Given a two-class dataset, it computes its imbalance ratio as {Size of minority class}/{Size of majority class}
imbalanceRatio(dataset, classAttr = "Class")
dataset | A target |
---|---|
classAttr | A |
A real number in [0,1] representing the imbalance ratio of
dataset
#> [1] 0.4861111