compute_imbalance: Computes imbalance value for a given dataset.
Description
Computes imbalance value for a given dataset.
Usage
compute_imbalance(target_col)
Value
A value of imbalance metric,
where zero means that the dataset is perfectly balanced
and the higher the value, the more imbalanced the dataset.
Arguments
- target_col
Factor or character vector of target column.