dataeval.data.selections.ClassBalance

class dataeval.data.selections.ClassBalance

Select indices of a dataset that will equalize the occurrences of all classes.

Note

1. The total number of instances of each class will be equalized which may result in a lower total number of instances than specified by the selection limit. 2. This selection currently only supports classification tasks