lenskit.pipeline.config#
Pydantic models for pipeline configuration and serialization support.
Attributes#
Classes#
A single entry in a pipeline's hook configuration.
Hook specifications for a pipeline.
Options used for pipeline assembly, particularly for extending pipelines.
Configuration fragments that override base configurations.
Root type for serialized pipeline configuration. A pipeline config contains
Pipeline metadata.
Spcification of a pipeline input.
Specification of a pipeline component.
Literal nodes represented in the pipeline.
Functions#
check_name(name, *[, what, allow_reserved])
Check that a name is valid.
hash_config(config)
Compute the hash of a configuration model.
merge_configs(base, update, *[, path, _skip_comp])
Module Contents#
- lenskit.pipeline.config.VALID_NAME#
- lenskit.pipeline.config.UNSET_CODE='!UNSET'#
- lenskit.pipeline.config.check_name(name, *, what='node', allow_reserved=False)#
Check that a name is valid.
- Raises:
ValueError – If the specified name is not valid.
- Parameters:
- lenskit.pipeline.config.hash_config(config)#
Compute the hash of a configuration model.
- Stability:
- Internal (see Stability Levels ).
- Parameters:
config (pydantic.BaseModel)
- Return type:
Exported Aliases#
- exceptionlenskit.pipeline.config.PipelineError#
Re-exported alias for
lenskit.diagnostics.PipelineError.
- exceptionlenskit.pipeline.config.PipelineWarning#
Re-exported alias for
lenskit.diagnostics.PipelineWarning.
- classlenskit.pipeline.config.HookEntry#
Re-exported alias for
lenskit.pipeline._hooks.HookEntry.
- lenskit.pipeline.config.is_union_type()#
Re-exported alias for
lenskit.pipeline._types.is_union_type().
- lenskit.pipeline.config.make_importable_path()#
Re-exported alias for
lenskit.pipeline._types.make_importable_path().
- classlenskit.pipeline.config.Component#
Re-exported alias for
lenskit.pipeline.components.Component.
- classlenskit.pipeline.config.ComponentConstructorNode#
Re-exported alias for
lenskit.pipeline.nodes.ComponentConstructorNode.
- classlenskit.pipeline.config.ComponentInstanceNode#
Re-exported alias for
lenskit.pipeline.nodes.ComponentInstanceNode.
- classlenskit.pipeline.config.ComponentNode#
Re-exported alias for
lenskit.pipeline.nodes.ComponentNode.
- classlenskit.pipeline.config.InputNode#
Re-exported alias for
lenskit.pipeline.nodes.InputNode.