Settings

Theme

Show HN: MCGrad – Fix ML Calibration in Subgroups (Open Source from Meta)

github.com

4 points by lumpilumpi 14 days ago · 0 comments · 1 min read

Reader

Hi HN,

We're the team at Meta open-sourcing MCGrad. We built this because we found that models often look calibrated on global metrics but fail silently on specific data slices (subgroups).

This library provides production-ready implementations of "multicalibration" to detect and fix these local biases.

Unlike standard calibration (which looks at the average), MCGrad optimizes for calibration across thousands of potentially overlapping subgroups simultaneously. It’s written in Python and designed to scale. It is currently in production at hundreds of ML models at Meta!

It includes: - Estimators for detecting miscalibration. - Algorithms to recalibrate predictions (post-processing). - Tools to visualize where your model is underperforming.

Docs: https://mcgrad.dev

Repo: https://github.com/facebookincubator/MCGrad/

Happy to answer any questions about the implementation or how we use it!

No comments yet.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection