nonconformist icon indicating copy to clipboard operation
nonconformist copied to clipboard

Mondrian Cross-Conformal Prediction

Open chupvl opened this issue 6 years ago • 1 comments

Hello,

do I understand correctly that Mondrian Cross-Conformal Prediction is not implemented in the pipelines ?

Thanks!

chupvl avatar Jun 01 '18 17:06 chupvl

It is correct that CrossConformalClassifier currently does not properly support conditional (Mondrian) Conformal Prediction.

You should, however, be able to construct an AggregatedConformalPredictor that uses Mondrian ICPs as the ensemble members, to achieve something similar:

model_adapter = ClassifierAdapter(SVC(probability=True))
nc = ClassifierNc(model_adapter)
icp = IcpClassifier(nc, condition=lambda x: x[1])
ccp = AggregatedCp(icp, CrossSampler())

donlnz avatar Oct 16 '18 18:10 donlnz