This notebook provides an overview for using and understanding the conflicting labels check.
What are Conflicting Labels?#
The check searches for identical samples with different labels. This can occur due to either mislabeled data, or when the data collected is missing features necessary to separate the labels. If the data is mislabled, it can confuse the model and can result in lower performance of the model.
import pandas as pd from deepchecks.tabular import Dataset
Run the Check#
We can also check label ambiguity on a subset of the features:
Define a Condition#
Now, we define a condition that enforces that the ratio of samples with conflicting labels should be 0. A condition is deepchecks’ way to validate model and data quality, and let you know if anything goes wrong.
Total running time of the script: ( 0 minutes 6.502 seconds)