lenskit.batch.recommend#
- lenskit.batch.recommend(pipeline, users, n=None, *, n_jobs=None, profiler=None)#
Convenience function to batch-generate recommendations from a pipeline. This is a batch version of
lenskit.recommend().Todo
Support more inputs than just user IDs.
- Stability:
- Caller (see Stability Levels).
- Parameters:
pipeline (Pipeline)
users (ItemListCollection[tuple[int | str | bytes | integer[Any] | str_ | bytes_ | object_, ...]] | Mapping[int | str | bytes | integer[Any] | str_ | bytes_ | object_, ItemList] | Iterable[int | str | bytes | integer[Any] | str_ | bytes_ | object_ | tuple[int | str | bytes | integer[Any] | str_ | bytes_ | object_, ...]] | DataFrame)
n (int | None)
profiler (PipelineProfiler | None)
- Return type: