Questions about TFX? Join us at Google I/O!

Module: tfx.components.testdata.module_file.transform_module

Python source file include taxi pipeline functions and necesasry utils.

For a TFX pipeline to successfully run, a preprocessing_fn and a _build_estimator function needs to be provided. This file contains both.

This file is equivalent to examples/chicago_taxi/trainer/model.py and examples/chicago_taxi/preprocess.py.

Functions

preprocessing_fn(...): tf.transform's callback function for preprocessing inputs.

stats_options_updater_fn(...): Callback function for setting pre and post-transform stats options.