lenskit#

Submodules#

als

LensKit ALS implementations.

basic

Basic and baseline pipeline components.

batch

Batch-run recommendation pipelines for evaluation.

config

LensKit general configuration

data

Data abstractions and data set access.

diagnostics

Warning and error classes and general LensKit diagnostic code.

flexmf

Flexible PyTorch matrix factorization models for LensKit.

funksvd

FunkSVD (biased MF).

graphs

hpf

Hierarchical Poisson factorization from hpfrec.

implicit

Bridges to recommendation models from implicit.

knn

lazy

Types and functions for lazy values. These are used mostly for pipeline inputs.

logging

Logging, progress, and resource records.

math

Mathematical helper routines.

metrics

Metrics for evaluating recommender outputs.

operations

Top-level LensKit functions for recommender operations.

parallel

LensKit parallel computation support.

pipeline

LensKit pipeline abstraction.

random

Utilities to manage randomness in LensKit and LensKit experiments.

reranking

top-N re-rankers.

sklearn

Recommendation models using SciKit-Learn.

splitting

Splitting data for train-test evaluation.

state

Support code for managing model state.

stats

LensKit statistical computations.

stochastic

Components for generating sochastic outputs in LensKit pipelines.

testing

LensKit test harnesses and utilities.

torch

PyTorch utility functions.

training

Interfaces and support for model training.

tuning

Tune parameters using Ray Tune.

Exported Aliases#

lenskit.configure()#

Re-exported alias for lenskit.config.configure().

lenskit.lenskit_config()#

Re-exported alias for lenskit.config.lenskit_config().

class lenskit.Dataset#

Re-exported alias for lenskit.data.Dataset.

class lenskit.DatasetBuilder#

Re-exported alias for lenskit.data.DatasetBuilder.

lenskit.predict()#

Re-exported alias for lenskit.operations.predict().

lenskit.recommend()#

Re-exported alias for lenskit.operations.recommend().

lenskit.score()#

Re-exported alias for lenskit.operations.score().

class lenskit.Component#

Re-exported alias for lenskit.pipeline.Component.

class lenskit.Pipeline#

Re-exported alias for lenskit.pipeline.Pipeline.

class lenskit.RecPipelineBuilder#

Re-exported alias for lenskit.pipeline.RecPipelineBuilder.

lenskit.topn_pipeline()#

Re-exported alias for lenskit.pipeline.topn_pipeline().

class lenskit.TTSplit#

Re-exported alias for lenskit.splitting.TTSplit.