Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ImportError when loading metrics #52

Closed
kingrc15 opened this issue Mar 7, 2024 · 1 comment
Closed

ImportError when loading metrics #52

kingrc15 opened this issue Mar 7, 2024 · 1 comment
Assignees

Comments

@kingrc15
Copy link

kingrc15 commented Mar 7, 2024

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
@optmai
Copy link
Collaborator

optmai commented Mar 27, 2024

It is an importing issue. We will soon fix it.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants