Νοεμβρίου 25, 2019 —
Posted by Charles Chen, Joe Lee, and Kenny Song on behalf of the TFX team
Run TFX in Google ColabTensorFlow Extended (TFX) is a platform for creating end-to-end machine learning pipelines. TFX was created by Google to provide the backbone of our own ML applications and services, and we’re steadily open-sourcing TFX to enable other companies and teams to easily build production-grade ML systems (le…
InteractiveContext
, which manages component execution and state in the notebook.context = InteractiveContext()
For example, here’s how we can run a StatisticsGen
component in a notebook. First, we instantiate a StatisticsGen
component and pass in our training data (usually ingested by another TFX component, such as ExampleGen
).statistics_gen = StatisticsGen(examples=example_gen.outputs['examples'])
Next, to run the component, we simply call context.run()
and run that cell.context.run(statistics_gen)
You’re done! As you might expect from the name, StatisticsGen
will generate statistics, at the feature-level, over your dataset. After the cell finishes running, you can review these statistics with a built-in TFX visualization by calling context.show()
.context.show(statistics_gen.outputs['statistics'])
The output of this function is an interactive visualization that you can explore to analyze the shapes and properties of your data.context.export_to_pipeline()
:context.export_to_pipeline(notebook_filepath=_notebook_filepath,
export_filepath=_pipeline_export_filepath,
runner_type=_runner_type)
TFX provides many more components that you can use in your production ML pipelines. To learn more and try out all TFX components in a Colab notebook, check out the tutorial.
Νοεμβρίου 25, 2019
—
Posted by Charles Chen, Joe Lee, and Kenny Song on behalf of the TFX team
Run TFX in Google ColabTensorFlow Extended (TFX) is a platform for creating end-to-end machine learning pipelines. TFX was created by Google to provide the backbone of our own ML applications and services, and we’re steadily open-sourcing TFX to enable other companies and teams to easily build production-grade ML systems (le…