--- id: implicit version: "0.7.3" license: MIT license_treatment: permissive maintenance: active --- # implicit — Collaborative Filtering for Implicit Feedback Datasets License: permissive · Maintenance: active · Downloads: 347.2K/mo ## What it is and what it does Implicit is a Python library for building recommendation systems from implicit feedback data—interactions like clicks, purchases, or listens rather than explicit ratings. It implements several well-established collaborative filtering algorithms (Alternating Least Squares, Bayesian Personalized Ranking, Logistic Matrix Factorization, and item-item nearest-neighbor models) with a focus on speed through Cython and OpenMP parallelization across CPU cores, plus optional CUDA kernels for GPU acceleration on compatible hardware. You provide a sparse matrix of user-item confidence weights, call fit() to train the model, and then use recommend() or similar_items() to generate recommendations or find related items. The library depends on numpy, scipy, tqdm, and threadpoolctl for its core functionality. It's designed for scenarios where you have large implicit feedback datasets and need fast, scalable recommendations—common in e-commerce, music streaming, and content discovery. Use it for: - Build a music recommendation engine from user play history (as shown in the lastfm example). - Recommend products in an e-commerce platform based on purchase or browsing behavior. - Find similar items (songs, articles, products) to show alongside a user's current selection. - Process large implicit feedback datasets efficiently using GPU acceleration when available. - Integrate approximate nearest-neighbor libraries (Annoy, NMSLIB, Faiss) for faster inference at scale. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Implicit provides fast Python implementations of collaborative filtering algorithms (ALS, BPR, Logistic Matrix Factorization, and nearest-neighbor models) optimized for implicit feedback datasets, with multi-threaded CPU training and optional GPU support. Yes, if you need a production-ready collaborative filtering library for implicit feedback. The package is actively maintained, has no known vulnerabilities, supports modern Python versions with prebuilt wheels, and offers both CPU and GPU training paths. Install friction is moderate but manageable; the main gotcha is ensuring SciPy and CUDA (if using GPU) are properly configured. Not suitable if you need explicit-rating models or prefer a higher-level recommendation framework. ## Install pip install implicit uv add implicit poetry add implicit ## Installing implicit Before you install: Medium install friction due to compiled wheels; prebuilt binaries available for x86_64 Linux, Windows, and macOS across Python 3.10–3.13, reducing build complexity. Active maintenance with a release 98 days ago. License in practice: MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you retain the license notice. Quickstart: pip install implicit import implicit model = implicit.als.AlternatingLeastSquares(factors=50) model.fit(user_item_data) recommendations = model.recommend(userid, user_item_data[userid]) Requires Python 3.9 or later and SciPy 0.16 or later. GPU support requires NVidia CUDA Toolkit version 13 and rmm-cu13. Verify before relying: - Whether prebuilt wheels include GPU support on all platforms or only Linux as the description suggests. - Performance characteristics and scalability limits for typical dataset sizes in production use. - Whether the package is actively maintained beyond the single recent release (repo metadata unavailable). ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: medium - Maintenance: active - Downloads: 347.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags collaborative filtering implicit feedback, recommendation engine matrix factorization, ALS alternating least squares, bayesian personalized ranking, item similarity recommendations, fast recommender system, implicit feedback algorithms, recommender-systems, matrix-factorization, gpu-accelerated [View on SkillFed](https://skillfed.io/packages/implicit) · [View on PyPI](https://pypi.org/project/implicit/)