ip200 / venn-abers

Python implementation of binary and multi-class Venn-ABERS calibration
MIT License
114 stars 11 forks source link

All-NaN slice encountered #12

Closed a412h closed 10 months ago

a412h commented 10 months ago

Hello. I am getting this message when calling predict_proba.

ip200 commented 10 months ago

Hi thank you, this is a numpy nanmin warning which happens during the calculation of p0_p1 in case where a particular fold or validation set contains a single class label only. The calculation is still correct, but numpy just issues a warning.