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\)
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\)