lenskit.pipeline.components.Placeholder#

class lenskit.pipeline.components.Placeholder(config=None, **kwargs)#

Bases: Component[Any]

Simple no-op component to use as a placeholder in partial pipelines.

Parameters:
  • config (object | None)

  • kwargs (Any)

config: PlaceholderConfig#

The component configuration object. Component classes that support configuration must redefine this attribute with their specific configuration class type, which can be a Python dataclass or a Pydantic model class.

abstractmethod __call__(**kwargs)#

Run the pipeline’s operation and produce a result. This is the key method for components to implement.

Parameters:

kwargs (Any)

Return type:

Any