tensorflow-recommenders
Tensorflow Recommenders, a TensorFlow library for recommender systems.
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and offers a well-structured abstraction for a common ML task. It is suitable for developers building recommender systems who want to leverage TensorFlow's ecosystem without writing boilerplate. The Apache 2.0 license is permissive for commercial use.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires TensorFlow 2.x to be installed separately; the package does not bundle TensorFlow itself.
- Low install friction with a pure-Python wheel.
- The package is actively maintained with recent commits and depends on core TensorFlow ecosystem libraries (tensorflow, tf-keras, absl-py), all of which are well-established.
License · maintenance · safety
Apache 2.0 (permissive) — Apache 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2026-01-23 (203 days) · last repo commit 2026-07-08 · 2,026 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 203,882 downloads/mo, #9,618 on PyPI
Alternatives
Verify before relying
pip install tensorflow-recommenders
import tensorflow_recommenders as tfrs
import tensorflow as tf
class Model(tfrs.Model):
def __init__(self):
super().__init__()
self.user_model = tf.keras.layers.Embedding(input_dim=2000, output_dim=64)
self.item_model = tf.keras.layers.Embedding(input_dim=2000, output_dim=64)
self.task = tfrs.tasks.Retrieval()
def compute_loss(self, features, training=False):
user_embeddings = self.user_model(features["user_id"])
item_embeddings = self.item_model(features["item_id"])
return self.task(user_embeddings, item_embeddings)
model = Model()
model.compile(optimizer=tf.keras.optimizers.Adagrad(0.5))- Whether the package supports distributed training across multiple GPUs or TPUs.
- Performance characteristics and scalability limits for large-scale datasets.
- Availability of pre-built models or transfer learning capabilities.
What it is and what it does
TensorFlow Recommenders is a Keras-based library for building recommender systems on top of TensorFlow. It abstracts away common patterns in recommendation workflows—embedding layers, ranking tasks, retrieval metrics—so you can focus on model architecture rather than boilerplate. The library is designed with a gentle learning curve but retains flexibility for complex models; it handles data preparation, model formulation, training, evaluation, and deployment as an integrated workflow.
The package depends on tensorflow, tf-keras, and absl-py, and is built to work seamlessly within the TensorFlow ecosystem. It provides task abstractions (like Retrieval) and metric classes (like FactorizedTopK) that simplify the definition of loss functions and evaluation criteria for recommendation problems. The library is actively maintained, with recent commits and a permissive Apache 2.0 license.
Use it for
- Build a matrix factorization model to predict user ratings for unseen movies or products.
- Train a two-tower neural network for candidate retrieval in a large-scale recommendation system.
- Evaluate ranking quality using built-in metrics like FactorizedTopK across a full candidate set.
- Combine user and item embeddings with custom Keras layers to model complex interaction patterns.
- Deploy a trained recommender model using TensorFlow's standard serving infrastructure.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has low install friction, carries no known vulnerabilities, and offers a well-structured abstraction for a common ML task. It is suitable for developers building recommender systems who want to leverage TensorFlow's ecosystem without writing boilerplate. The Apache 2.0 license is permissive for commercial use.
Install
tensorflow-recommenders on PyPI
Before you install
Low install friction with a pure-Python wheel. The package is actively maintained with recent commits and depends on core TensorFlow ecosystem libraries (tensorflow, tf-keras, absl-py), all of which are well-established.
Requires TensorFlow 2.x to be installed separately; the package does not bundle TensorFlow itself.
License in practice
Apache 2.0 is permissive; you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install tensorflow-recommenders
import tensorflow_recommenders as tfrs
import tensorflow as tf
class Model(tfrs.Model):
def __init__(self):
super().__init__()
self.user_model = tf.keras.layers.Embedding(input_dim=2000, output_dim=64)
self.item_model = tf.keras.layers.Embedding(input_dim=2000, output_dim=64)
self.task = tfrs.tasks.Retrieval()
def compute_loss(self, features, training=False):
user_embeddings = self.user_model(features["user_id"])
item_embeddings = self.item_model(features["item_id"])
return self.task(user_embeddings, item_embeddings)
model = Model()
model.compile(optimizer=tf.keras.optimizers.Adagrad(0.5))
Verify before relying
- Whether the package supports distributed training across multiple GPUs or TPUs.
- Performance characteristics and scalability limits for large-scale datasets.
- Availability of pre-built models or transfer learning capabilities.
Package facts
| License | Apache 2.0 permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagesabsl-pytf-kerastensorflowtensorflow-macos |
| Maintenance | Actively maintained 203 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 203,882 / month, #9,618 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: MathematicsTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules |
Evidence: tensorflow_recommenders-0.7.7-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “recommendation system tensorflow”
- tensorflow-recommendersTensorFlow Recommenders provides a Keras-based library for building…
- google-metraxMetrax provides standard evaluation metrics for machine learning…
- recboleRecBole provides a unified framework for implementing, benchmarking,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Software Development packages
Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.
NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.
See also implicit · keras · scikit-surprise · tensorflow-model-optimization · recbole · tf-slim · tensorflow-estimator · keras-nightly · tf-keras-nightly · tf-estimator-nightly