You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sorted_highlow will return the distribution ordered by class frequency, which may not be the same order as the classes in the confusion matrix. So the following line:
will break unless the classes happen to already be ordered by frequency. In the plankton example this does not cause problems, since there are more data points with label 0 than 1. However if one were to flip this distribution, i.e.
Hi @aangelopoulos -- have finally been playing around with PPI!
I found a potential bug here:
ppi_py/ppi_py/ppi.py
Line 1762 in ac99d9a
sorted_highlow
will return the distribution ordered by class frequency, which may not be the same order as the classes in the confusion matrix. So the following line:ppi_py/ppi_py/ppi.py
Line 1765 in ac99d9a
will break unless the classes happen to already be ordered by frequency. In the plankton example this does not cause problems, since there are more data points with label 0 than 1. However if one were to flip this distribution, i.e.
The PPI estimate breaks.
Removing
sorted_highlow=True
from this call seems to fix the issue.Happy to submit a quick PR for this if my understanding is correct here.
The text was updated successfully, but these errors were encountered: