A library for analyzing TensorFlow models
TensorFlow Model Analysis
TensorFlow Model Analysis (TFMA) is a library for evaluating TensorFlow models. It allows users to evaluate their models on large amounts of data in a distributed manner, using the same metrics defined in their trainer. These metrics can be computed over different slices of data and visualized in Jupyter notebooks.
Caution: TFMA may introduce backwards incompatible changes before version 1.0.
The recommended way to install TFMA is using the PyPI package:
pip install tensorflow-model-analysis
Currently, TFMA requires that TensorFlow is installed but does not have an explicit dependency on the TensorFlow PyPI package. See the TensorFlow install guides for instructions.
To enable TFMA visualization in Jupyter Notebook:
jupyter nbextension enable --py widgetsnbextension
jupyter nbextension install --py --symlink tensorflow_model_analysis
jupyter nbextension enable --py tensorflow_model_analysis
Note: If Jupyter notebook is already installed in your home directory, add
--user to these commands. If Jupyter is installed as root, or using a virtual
environment, the parameter
--sys-prefix might be required.
Apache Beam is required to run distributed analysis. By default, Apache Beam runs in local mode but can also run in distributed mode using Google Cloud Dataflow. TFMA is designed to be extensible for other Apache Beam runners.
The following table is the TFMA package versions that are compatible with each other. This is determined by our testing framework, but other untested combinations may also work.
|GitHub master||nightly (1.x)||2.11.0|
Release history Release notifications
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|tensorflow_model_analysis-0.13.2-py2-none-any.whl (973.4 kB) Copy SHA256 hash SHA256||Wheel||py2|
|tensorflow_model_analysis-0.13.2-py3-none-any.whl (976.5 kB) Copy SHA256 hash SHA256||Wheel||py3|