Pipeline API#

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

Pipeline Classes#

Pipeline

LensKit recommendation pipeline.

PipelineState

Full results of running a pipeline.

Node

Representation of a single node in a Pipeline.

Lazy

Type for accepting lazy inputs from the pipeline runner.

Component Interface#

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

Component

Base class for pipeline component objects.

Trainable

Interface for components that can learn parameters from training data.

Configurable

Interface for configurable objects such as pipeline components with settings or hyperparameters.

Standard Pipelines#

RecPipelineBuilder

Builder to help assemble common pipeline patterns.

topn_pipeline

Create a pipeline that produces top-N recommendations using a scoring model.