lenskit.pipeline.topn_pipeline#
- lenskit.pipeline.topn_pipeline(scorer, config=None, *, predicts_ratings=False, n=None, name=None)#
Create a pipeline that produces top-N recommendations using a scoring model.
- Stability:
- Caller (see Stability Levels).
- Parameters:
scorer (Component | ComponentConstructor) – The scorer to use in the pipeline (it will added with the component name
scorer, see Component Names).predicts_ratings (bool | Literal['raw']) – If
True, make set up to predict ratings (rating-predictor), usingscorerwith a fallback ofBiasScorer; if"raw", usescorerdirectly with no fallback.n (int | None) – The recommendation list length to configure in the pipeline.
name (str | None) – The pipeline name.
config (object | None)
- Return type: