lenskit.pipeline.config.PipelineComponent#

class lenskit.pipeline.config.PipelineComponent#

Bases: pydantic.BaseModel

Specification of a pipeline component.

code: str#

The path to the component’s implementation, either a class or a function. This is a Python qualified path of the form module:name.

config: Mapping[str, pydantic.JsonValue] | None = None#

The component configuration. If not provided, the component will be created with its default constructor parameters.

inputs: dict[str, str]#

The component’s input wirings, mapping input names to node names. For certain meta-nodes, it is specified as a list instead of a dict.

classmethod from_node(node)#
Parameters:

node (lenskit.pipeline.nodes.ComponentNode[Any])

Return type:

Self