LibAUC
LibAUC copied to clipboard
ImportError when loading metrics
The following code throws an ImportError with libauc==1.3.1.
from libauc.metrics import auc_prc_score
ImportError: cannot import name 'ndcg_at_k' from partially initialized module 'libauc.metrics'
The same error is thrown when importing other metrics such as auc_roc_score.
However, if I import utils first, the error isn't thrown.
import libauc.utils
from libauc.metrics import auc_prc_score