Article Complete

TensorFlow Turns 5: Here Are Top Libraries Released Over The Years

TensorFlow Turns 5: Here Are Top Libraries Released Over The Years

Key takeaways

  • TensorFlow, launched in November 2015, has become a leading open-source framework for machine learning.
  • The Lattice library enables users to incorporate domain knowledge into machine learning models for better extrapolation.
  • TensorFlow Probability allows the integration of probabilistic models with deep learning, enhancing data understanding.
  • TensorFlow Hub provides a repository of pre-trained models, facilitating easy deployment and fine-tuning for various applications.

Takeaways drafted with AI from the article text.

TensorFlow is one of the greatest gifts to the machine learning community by Google. An end-to-end open-source framework for machine learning with a comprehensive ecosystem of tools, libraries and community resources, TensorFlow lets researchers push the state-of-the-art in ML and developers can easily build and deploy ML-powered applications. Ever since its release to the public back in November 2015, TensorFlow has grown to become one of the most popular deep learning frameworks. This month, TensorFlow turned five, and in this article, we take a look at its popular libraries.

Lattice

TensorFlow Lattice library implements constrained and interpretable lattice-based models that enable users to inject domain knowledge into the learning process through common-sense. TF Lattice allows users to use domain knowledge to extrapolate to the parts of the input space that hasn’t been covered by the training dataset. 

TensorFlow Probability

TensorFlow Probability makes it easy to combine probabilistic models and deep learning on TPUs and GPUs. It’s built for data scientists, statisticians, ML researchers, and practitioners who want to encode domain knowledge to understand data and make predictions. 

TensorFlow Hub

  !pip install --upgrade tensorflow_hub

TFRS

It assists the users with the full workflow of building a recommender system: data preparation, model formulation, training, evaluation, and deployment.

Built on Keras, TFRS makes it possible to:

  • Build and evaluate flexible recommendation retrieval models.
  • Incorporate item, user, and context information into recommendation models.
  • Train multi-task models that jointly optimise multiple recommendation objectives.

import tensorflow_recommenders as tfrs

TensorFlow Graphics

TensorFlow Graphics aims at making useful graphics functions widely accessible to the community by providing a set of differentiable graphics layers (e.g. cameras, reflectance models, mesh convolutions) and 3D viewer functionalities (e.g. 3D TensorBoard. This can be used in your machine learning models of choice.

pip install --upgrade tensorflow-graphics

Nucleus

pip install --user google-nucleus

Sonnet

$ pip install dm-sonnet

TensorFlow Ranking

TensorFlow Ranking is a library for Learning-to-Rank (LTR) techniques on the TensorFlow platform. It contains the following components:

  • Commonly used loss functions, including pointwise, pairwise, and listwise losses.
  • Commonly used ranking metrics like Mean Reciprocal Rank (MRR) and Normalised Discounted Cumulative Gain (NDCG).
  • Multi-item (also known as Groupwise) scoring functions.
  • LambdaLoss implementation for direct ranking metric optimisation.
  • Unbiased Learning-to-Rank from biased feedback data.

This library provides a convenient open platform for hosting and advancing state-of-the-art ranking models based on deep learning techniques, and thus facilitate both academic research and industrial applications.

pip install --user --upgrade tensorflow_ranking

TensorFlow Privacy

TensorFlow Privacy is a Python library that includes implementations of TensorFlow optimisers for training machine learning models with differential privacy. 

pip install tensorflow-privacy

T2T 

pip install tensor2tensor

For Reinforcement Learning

TensorFlow has two popular libraries for RL: 

  • TRFL is an open-source library of useful building blocks for writing reinforcement learning (RL) agents in TensorFlow. It represents a collection of key algorithmic components that are used for a large number of DeepMind’s most successful agents such as DQN, DDPG and the Importance Weighted Actor Learner Architecture.
  • TF-Agents makes designing, implementing and testing new RL algorithms easier by providing well tested modular components that can be modified and extended. It enables fast code iteration, with good test integration and benchmarking.

Published

Corrections: AIM corrects errors of fact and notes the change on the story. Spotted one? Tell the editors. Read our editorial standards.