Skip to content

Commit

Permalink
fix circular import
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Dec 7, 2024
1 parent a45d2ac commit bf64152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lenskit/lenskit/pipeline/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# SPDX-License-Identifier: MIT
from typing import Literal

from lenskit.basic.bias import BiasScorer
from lenskit.basic.candidates import UnratedTrainingItemsCandidateSelector
from lenskit.basic.composite import FallbackScorer
from lenskit.basic.history import UserTrainingHistoryLookup
Expand Down Expand Up @@ -142,6 +141,8 @@ def topn_pipeline(
name:
The pipeline name.
"""
from lenskit.basic.bias import BiasScorer

builder = RecPipelineBuilder()
builder.scorer(scorer)
builder.ranker(n=n)
Expand Down

0 comments on commit bf64152

Please sign in to comment.