lenskit.basic.composite#

Classes#

FallbackScorer

Scoring component that fills in missing scores using a fallback.

Module Contents#

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:
Return type:

lenskit.data.ItemList

Exported Aliases#

class lenskit.basic.composite.ItemList#

Re-exported alias for lenskit.data.ItemList.

class lenskit.basic.composite.Component#

Re-exported alias for lenskit.pipeline.Component.

class lenskit.basic.composite.Lazy#

Re-exported alias for lenskit.pipeline.Lazy.