lenskit.batch.recommend#
- lenskit.batch.recommend(pipeline, queries, n=None, *, n_jobs=None, profiler=None, users=None)#
Convenience function to batch-generate recommendations from a pipeline. This is a batch version of
lenskit.recommend(), and is a convenience wrapper around using aBatchPipelineRunner()to generate recommendations.See also
BatchPipelineRunner.run()for details on the arguments, and Batch Queries for details on the valid inputs forqueries.- Parameters:
queries (Iterable[RecQuery] | Iterable[tuple[RecQuery, ItemList]] | Iterable[int | str | bytes | integer[Any] | str_ | bytes_ | object_ | tuple[int | str | bytes | integer[Any] | str_ | bytes_ | object_, ...]] | ItemListCollection[tuple[int | str | bytes | integer[Any] | str_ | bytes_ | object_, ...]] | Mapping[int | str | bytes | integer[Any] | str_ | bytes_ | object_, ItemList] | DataFrame) – The request queries.
pipeline (Pipeline)
n (int | None)
profiler (PipelineProfiler | None)
- Stability:
- Caller (see Stability Levels).
- Return type: