Batch Operations#

The lenskit.batch module provides support for applying pipelines to batches of test data, primarily for offline evaluation. See Batch-Running Pipelines for usage instructions.

BatchPipelineRunner

Apply a pipeline to a collection of test users.

BatchResults

Results from a batch recommendation run.

predict

Convenience function to batch-generate rating predictions (or other per-item scores) from a pipeline.

recommend

Convenience function to batch-generate recommendations from a pipeline.

Support Types#

InvocationSpec

Specification for a single pipeline invocation, to record one or more pipeline component outputs for a test user.