lenskit.basic.composite.FallbackScorer#
- class lenskit.basic.composite.FallbackScorer(config=None, **kwargs)#
Bases:
lenskit.pipeline.Component[lenskit.data.ItemList]Scoring component that fills in missing scores using a fallback.
- Stability:
- Caller (see Stability Levels).
- Parameters:
config (object | None)
kwargs (Any)
- config: None#
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.
- __call__(primary, backup)#
Run the pipeline’s operation and produce a result. This is the key method for components to implement.
- Parameters:
primary (lenskit.data.ItemList)
backup (lenskit.pipeline.Lazy[lenskit.data.ItemList])
- Return type: