Skip to content

Latest commit

 

History

History

beam-ml

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ML sample notebooks

Starting with the Apache Beam SDK version 2.40, users have access to a RunInference transform.

This transform allows you to make predictions and inference on data with machine learning (ML) models. The model handler abstracts the user from the configuration needed for specific frameworks, such as Tensorflow, PyTorch, and others. For a full list of supported frameworks, see the About Beam ML page.

Use the notebooks

These notebooks illustrate ways to use Apache Beam's RunInference transforms, as well as different use cases for ModelHandler implementations. Beam comes with multiple ModelHandler implementations.

Load the notebooks

  1. To get started quickly with notebooks, use Colab.
  2. In Colab, open the notebook from GitHub using the notebook URL, for example:
https://github.com/apache/beam/blob/master/examples/notebooks/beam-ml/run_inference_tensorflow.ipynb
  1. To run most notebooks, you need to change the Google Cloud project and bucket to your project and bucket.

Notebooks

This section contains the following example notebooks.

Data processing

Data enrichment

Prediction and inference with pretrained models

Custom inference

Machine Learning Use Cases

Automatic Model Refresh

Multi-model pipelines

Model Evaluation