Skip to content

ImportError when loading metrics #52

@kingrc15

Description

@kingrc15

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions