A library for analyzing TensorFlow models
Project description
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.
Installation
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.
Dependencies
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.
Getting Started
For instructions on using TFMA, see the get started guide and try out the extensive end-to-end example.
Compatible Versions
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.
tensorflow-model-analysis | tensorflow | apache-beam[gcp] |
---|---|---|
GitHub master | nightly (1.x) | 2.11.0 |
0.13.0 | 1.13 | 2.11.0 |
0.12.1 | 1.12 | 2.10.0 |
0.12.0 | 1.12 | 2.10.0 |
0.11.0 | 1.11 | 2.8.0 |
0.9.2 | 1.9 | 2.6.0 |
0.9.1 | 1.10 | 2.6.0 |
0.9.0 | 1.9 | 2.5.0 |
0.6.0 | 1.6 | 2.4.0 |
Questions
Please direct any questions about working with TFMA to Stack Overflow using the tensorflow-model-analysis tag.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for tensorflow_model_analysis-0.13.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aba9e9023e7a570da8510bae464253876c064bce8628834a5c369120def9e383 |
|
MD5 | 9997800933857df0c36cf0db29d3519f |
|
BLAKE2b-256 | 5c47ee292738a87716c2bb8087faaec5212a16b413b35f878898f60dd50927af |
Hashes for tensorflow_model_analysis-0.13.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3b67c437b6ab63245574529b8057e92f3e1903dcec4a62ce4a135a4668a6534 |
|
MD5 | d026560067afa572e8b880b95f4b0311 |
|
BLAKE2b-256 | f539ca98fd2e6d9308a179ca9fd73ca22406c62f7a1c3b254ce7ca40c01296af |
Hashes for tensorflow_model_analysis-0.13.0-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5791177696e8d97e2daf9edbb58f0e5848089dba1ae8174ffe4b9c5b199c1d75 |
|
MD5 | 571a332bcdcd3483f7575504ef2acfa1 |
|
BLAKE2b-256 | 8751f96b9025c9128a1d04656e22dd6c8703ab6f3ccc9723ccf82b3f74324071 |