scikit-learn-contrib / MAPIE

A scikit-learn-compatible module to estimate prediction intervals and control risks based on conformal predictions.
https://mapie.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
1.2k stars 99 forks source link

ENH: externalize MapieClassifier methods into several non-conformity scores #476

Open thibaultcordier opened 3 days ago

thibaultcordier commented 3 days ago

Description

Outsource the MapieClassifier methods (LAC, APS, RAPS, TOPK) by extending the non-conformity score class to the classification task.

Fixes #467

Type of change

How Has This Been Tested?

Checklist

vincentblot28 commented 1 day ago

What a tour de force @thibaultcordier !! Great improvement to the classification API ! General comment about the example: as in the future we prefer to use directly the conformity scores (and the argument "method" might be removed) I think examples should follow the new way of using MapieClassifier