lenskit.batch.InvocationSpec#

class lenskit.batch.InvocationSpec#

Specification for a single pipeline invocation, to record one or more pipeline component outputs for a test user.

name: str#

A name for this invocation.

components: dict[str, str]#

The names of pipeline components to measure and return, mapped to their output names.

items: ItemSource = None#

The target or candidate items (if any) to provide to the recommender (as the items input).

extra_inputs: dict[str, Any]#

Additional inputs to pass to the pipeline.