compute_imbalance: Computes imbalance value for a given dataset.

View source: R/nearest.R

compute_imbalanceR 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.


pmlbr documentation built on Sept. 29, 2023, 1:06 a.m.