LibAUC icon indicating copy to clipboard operation
LibAUC copied to clipboard

ImportError when loading metrics

Open kingrc15 opened this issue 1 year ago • 0 comments

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

kingrc15 avatar Mar 07 '24 18:03 kingrc15