Pipeline API#

This page documents the LensKit pipeline API, exposed in the lenskit.pipeline module.

Pipeline Classes#

Pipeline

LensKit recommendation pipeline.

Node

Representation of a single node in a Pipeline.

Component Interface#

These are the interfaces and classes you need to reference when building new LensKit components.

ConfigurableComponent

Interface for configurable pipeline components (those that have hyperparameters).

TrainableComponent

Interface for pipeline components that can learn parameters from training data, and expose those parameters for serialization as an alternative to pickling (components also need to be picklable).

AutoConfig

Mixin class providing automatic configuration support based on constructor arguments.

Standard Pipelines#

topn_pipeline

Create a pipeline that produces top-N recommendations using the specified scorer. The scorer should have the following call signature::.