lenskit.pipeline.config.PipelineConfig#

class lenskit.pipeline.config.PipelineConfig#

Bases: pydantic.BaseModel

Root type for serialized pipeline configuration. A pipeline config contains the full configuration, components, and wiring for the pipeline, but does not contain the learned parameters.

Stability:
Full (see Stability Levels).
options: PipelineOptions | None = None#

Options for assembling the final pipeline.

meta: PipelineMeta#

Pipeline metadata.

inputs: list[PipelineInput] = []#

Pipeline inputs.

components: collections.OrderedDict[str, PipelineComponent]#

Pipeline components, with their configurations and wiring.

aliases: dict[str, str]#

Pipeline node aliases.

default: str | None = None#

The default node for running this pipeline.

literals: dict[str, PipelineLiteral]#

Literals

hooks: PipelineHooks#

The hooks configured for the pipeline.

merge_component_configs(configs)#

Merge component configuration options into the pipeline configuration.

This returns a modified copy of the pipeline with the applied configurations, and does not modify the configuration in-place.

Parameters:

configs (Mapping[str, Mapping[str, pydantic.JsonValue]])

Return type:

PipelineConfig