LensKit for Python: Next-Generation Software for Recommender System Experiments

Michael D. Ekstrand
9/10/2018
cs.IRcs.AIcs.LG

Official code: lenskit/lkpy (312 stars, last commit 2026-10-19).

Abstract

LensKit is an open-source toolkit for building, researching, and learning about recommender systems. First released in 2010 as a Java framework, it has supported diverse published research, small-scale production deployments, and education in both MOOC and traditional classroom settings. In this paper, I present the next generation of the LensKit project, re-envisioning the original tool's objectives as flexible Python package for supporting recommender systems research and development. LensKit for Python (LKPY) enables researchers and students to build robust, flexible, and reproducible experiments that make use of the large and growing PyData and Scientific Python ecosystem, including scikit-learn, TensorFlow, and PyTorch. To that end, it provides classical collaborative filtering implementations, recommender system evaluation metrics, data preparation routines, and tools for efficiently batch running recommendation algorithms, all usable in any combination with each other or with other Python software. This paper describes the design goals, use cases, and capabilities of LKPY, contextualized in a reflection on the successes and failures of the original LensKit for Java software.

View on arXivView PDF

Code Implementations(1)

lenskit/lkpyOfficial100%

Python recommendation toolkit

31279Just, RustJun 8, 20185 days agoNOASSERTION
lenskitpythonrecsysscikit

Similar Papers

Cite this paper

@article{ekstrand2018lenskit,
  title  = {LensKit for Python: Next-Generation Software for Recommender System Experiments},
  author = {Michael D. Ekstrand},
  year   = {2018},
  eprint = {1809.03125},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1809.03125}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1809.03125.svg)](https://codeofpaper.com/paper/1809.03125)

Discussion