lenskit.schemas.pipeline.PipelineOptions#

class lenskit.schemas.pipeline.PipelineOptions(/, **data)#

Bases: pydantic.BaseModel

Options used for pipeline assembly, particularly for extending pipelines.

Parameters:

data (Any)

base: str | None = None#

Apply this configuration to a base pipeline.

default_length: int | None#

For top-N base pipelines, the default ranking length to configure.

fallback_predictor: bool | None = None#

For rating prediction pipelines, enable or disable the default fallback predictor.

history_lookup: bool = True#

For standard recommendation pipelines, look up user history from the training data. Set to False when queries supply their own history.