A library for data preprocessing with TensorFlow
TensorFlow Transform is a library for preprocessing data with TensorFlow.
tf.Transform is useful for data that requires a full-pass, such as:
- Normalize an input value by mean and standard deviation.
- Convert strings to integers by generating a vocabulary over all input values.
- Convert floats to integers by assigning them to buckets based on the observed data distribution.
TensorFlow has built-in support for manipulations on a single example or a batch
tf.Transform extends these capabilities to support full-passes
over the example data.
The output of
tf.Transform is exported as a
TensorFlow graph to use for training and serving.
Using the same graph for both training and serving can prevent skew since the
same transformations are applied in both stages.
For an introduction to
tf.Transform, see the
tf.Transform section of the
TFX Dev Summit talk on TFX
tf.Transform may be backwards incompatible before version 1.0.
PyPI package is the
recommended way to install
pip install tensorflow-transform
TensorFlow is required.
Apache Beam is required; it's the way that efficient distributed computation is supported. By default, Apache Beam runs in local mode but can also run in distributed mode using Google Cloud Dataflow and other Apache Beam runners.
Apache Arrow is also required. TFT uses Arrow to represent data internally in order to make use of vectorized numpy functions.
The following table is the
tf.Transform 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.x)||2.20.0|
|0.22.0||1.15 / 2.2||2.20.0|
|0.21.2||1.15 / 2.1||2.17.0|
|0.21.0||1.15 / 2.1||2.17.0|
|0.15.0||1.15 / 2.0||2.16.0|
Release history Release notifications | RSS feed
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size tensorflow_transform-0.22.0-py3-none-any.whl (326.9 kB)||File type Wheel||Python version py3||Upload date||Hashes View|
Hashes for tensorflow_transform-0.22.0-py3-none-any.whl