LightFM is a Python implementation of the LightFM hybrid recommendation algorithm, combining collaborative and content-based filtering. Current version is 1.17. Release cadence is irregular.
pip install lightfmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: train a WARP-loss model on MovieLens data and evaluate precision@10.
Use 'from lightfm.cross_validation import cross_validate'.
Manually shuffle your item-user interaction matrix before passing to fit.
Do not treat scores as probabilities; use ranking metrics for evaluation.
Upgrade to Python 3.7 or later.