A Python implementation of a number of popular recommendation algorithms for both implicit and explicit feedback.

making.lyst.com/lightfm/docs/home.html
LightFMmaking.lyst.com/lightfm/docs/home.htmlVisit site

About LightFM

LightFM is a Python library for building recommendation systems with both implicit and explicit feedback. It extends traditional matrix factorization by incorporating user and item metadata.

Each user and item is represented as the sum of the latent representations of its features. This allows recommendations to generalize to new users through user features and to new items through item features. The method is described in the LightFM paper on arXiv.

You can install it with pip on Linux, macOS with Homebrew Python, and Windows with Miniconda, or run it in a Docker container. The documentation explains model fitting and prediction with the LightFM class, use of feature matrices, multi-threaded training, and loss functions such as BPR, WARP, and k-OS WARP. It includes examples using the Movielens dataset and coupon purchase prediction. It suits Python developers, students, and researchers working on recommender systems.

Key features

  • Supports implicit and explicit feedback recommendation algorithms
  • Incorporates user and item metadata into factorization
  • Handles new users and items via feature representations
  • Offers BPR, WARP, and k-OS WARP loss functions
  • Enables multi-threaded training and prediction
  • Installs via pip or runs in Docker
Best for: Python developers, students, and researchers building recommender systems with user and item features.
Good for
  • Covers installation, usage, and code examples
  • Supports user and item metadata for recommendations
  • Provides Movielens and coupon purchase examples
Watch out for
  • Single-threaded by default on OSX and Windows
  • Default macOS Python distribution not supported

LightFM at a glance

Type
Website
Pricing
Not confirmed. Check the site
Platforms
Linux, Web, Windows
Open source
Not stated
Language
English
Last checked
Oct 5, 2026 · Online when checked
Listed
Oct 5, 2026

LightFM alternatives

Tools and sites you could use instead, ranked by how closely they match.

All 24 alternatives

Popular in AI for Education

Well-known listings from the same topic.

All 105

LightFM FAQ

What is LightFM?
LightFM is a Python implementation of recommendation algorithms for implicit and explicit feedback that incorporates user and item metadata.
How do you install LightFM?
You can install it with pip install lightfm on Linux, macOS with Homebrew Python, and Windows with Miniconda, or run it in a Docker container.
Does LightFM support new users and items?
Yes. It represents users and items as sums of feature representations, allowing generalization to new users and items via features.
Which loss functions does LightFM support for implicit feedback?
The documentation lists BPR, WARP, and k-OS WARP for implicit feedback settings.
Is something wrong or out of date?

Tell us and an editor will check it.

Own this website?

Claim the listing and suggest updates yourself. An editor checks every claim first.

Claim this listing