class_imbalance: Class Imbalance

View source: R/class_imbalance.R

class_imbalanceR Documentation

Class Imbalance

Description

Calculate class imbalance as given by:

I = K\cdot\sum_{i=1}^K (n_i/N - 1/K)^2

where K is the number of classes, and n_i is the number of instances of class i

Usage

class_imbalance(x)

Arguments

x

Vector, factor: Labels of outcome. If x has more than 1 column, the last one will be used

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on Oct. 28, 2024, 6:30 a.m.