Install any skill in seconds. Free to start, no credit card required.
Get Started Free →mkurman/label-quality-audit
Audit label quality using confident learning (Northcutt et al.), cross-validation noise detection, and per-class error analysis. Identifies mislabeled examples for review.
Passed 16 of 22 test cases with the skill, and 11 of 22 without it.
and 3 more in the full report
6 fixed10 passed either way5 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
How many cross-validation folds should be configured by default when generating out-of-sample probability estimates for label error identification?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies using 5 folds for cross_val_predict | Missed | Passed |
The instructions your model reads when the skill loads.
Label noise is the most insidious data quality problem — it's invisible until the model learns the wrong thing. Confident learning (Northcutt et al., 2021) identifies likely mislabeled examples using out-of-sample predicted probabilities.
Use when: training data labels come from crowd workers, automated systems, or weak supervision. Do not use on expert-validated reference data unless auditing for drift.
import numpy as np
from sklearn.model_selection import cross_val_predict
from sklearn.ensemble import RandomForestClassifier
def confident_learning_audit(X, y, n_folds=5):
"""
Returns indices of likely mislabeled examples.
Based on Northcutt et al. "Confident Learning: Estimating
Uncertainty in Dataset Labels" (JMLR 2021).
"""
n_classes = len(np.unique(y))
# 1. Out-of-sample predicted probabilities
proba = cross_val_predict(
RandomForestClassifier(n_estimators=100, random_state=42),
X, y, cv=n_folds, method="predict_proba"
)
# 2. Compute confident joint
# Estimated joint distribution of noisy labels × true labels
confident_joint = np.zeros((n_classes, n_classes))
for i in range(len(y)):
true_class = y[i]
pred_class = np.argmax(proba[i])
confidence = proba[i][pred_class]
# Count if predicted class has confidence above per-class threshold
test cases passed, vs 11 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.