yardstick icon indicating copy to clipboard operation
yardstick copied to clipboard

Feature request: calibration metrics

Open UAB-BST-680 opened this issue 4 years ago • 4 comments

I really like yardstick's API for computing discrimination. Calibration is also an important metric for classification models. Is there any interest in developing some yardstick functions to compute a calibration statistic?

Frank Harrell's Unreliability index seems like a good candidate. The Unreliability index is a chi-square statistic with 2 degrees of freedom testing the hypothesis that calibration slope and intercept are ideal (i.e., the slope is 1, the intercept is 0).

UAB-BST-680 avatar Apr 22 '20 14:04 UAB-BST-680

On a related note, I would like to request calibration curves, as in, for example, https://scikit-learn.org/stable/auto_examples/calibration/plot_compare_calibration.html#sphx-glr-auto-examples-calibration-plot-compare-calibration-py

alexpghayes avatar Jun 20 '20 15:06 alexpghayes

Really need that toooo! Hope calibration curve can be easily plotted with yardstick! Thank you very much.

ayueme avatar Jun 05 '22 06:06 ayueme

Yes!! This is also I really want. Thanks!

Guiquan-27 avatar Aug 15 '22 08:08 Guiquan-27

Calibration curves are the go-to metric in clinical prediction models, arguably more important that ROC curves.
See https://link.springer.com/book/10.1007/978-3-030-16399-0

aminadibi avatar Oct 23 '22 02:10 aminadibi