compute_imbalance {pmlbr}R Documentation

Computes imbalance value for a given dataset.

Description

Computes imbalance value for a given dataset.

Usage

compute_imbalance(target_col)

Arguments

target_col

Factor or character vector of target column.

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.


[Package pmlbr version 0.2.1 Index]