imbalanceRatio {imbalance} | R Documentation |
Compute imbalance ratio of a binary dataset
Description
Given a two-class dataset, it computes its imbalance ratio as {Size of minority class}/{Size of majority class}
Usage
imbalanceRatio(dataset, classAttr = "Class")
Arguments
dataset |
A target |
classAttr |
A |
Value
A real number in [0,1] representing the imbalance ratio of
dataset
Examples
data(glass0)
imbalanceRatio(glass0, classAttr = "Class")
[Package imbalance version 1.0.2.1 Index]