ClassImbalance#
- class ClassImbalance[source]#
Check if a dataset is imbalanced by looking at the target variable distribution.
- Parameters
- n_top_labels: int, default: 5
Number of labels to show in display graph
- ignore_nan: bool, default True
Whether to ignore NaN values in the target variable when counting the number of unique values.
- __new__(*args, **kwargs)#
Methods
|
Add new condition function to the check. |
Add condition - ratio between least to most frequent labels. |
|
Remove all conditions from this check instance. |
|
Run conditions on given result. |
|
|
Return check configuration (conditions' configuration not yet supported). |
|
Return check object from a CheckConfig object. |
|
Deserialize check instance from JSON string. |
|
Return check metadata. |
Name of class in split camel case. |
|
|
Return parameters to show when printing the check. |
Remove given condition by index. |
|
|
Run check. |
|
Run the check. |
|
Serialize check instance to JSON string. |