lenskit.batch.InvocationSpec#

class lenskit.batch.InvocationSpec(name, components, items=None, extra_inputs=<factory>)#

Bases: object

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

Parameters:
__init__(name, components, items=None, extra_inputs=<factory>)#
Parameters:
Return type:

None

Methods

__init__(name, components[, items, extra_inputs])

Attributes

items

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

name

A name for this invocation.

components

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

extra_inputs

Additional inputs to pass to the pipeline.

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: None | Literal['test-items'] = None#

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

extra_inputs: dict[str, Any]#

Additional inputs to pass to the pipeline.