Vertex Explainable AI notebook tutorials

This document contains a list of available Vertex Explainable AI notebook tutorials. These end-to-end tutorials help you get started using Vertex Explainable AI and can give you ideas for how to implement a specific project.

There are many environments in which you can host notebooks. You can:

  • Run them in the cloud using a service like Colaboratory (Colab) or Vertex AI Workbench.
  • Download them from GitHub and run them on your local machine.
  • Download them from GitHub and run them on a Jupyter or JupyterLab server in your local network.

Running a notebook in Colab is a way to get started quickly.

To open a notebook tutorial in Colab, click the Colab link in the notebook list. Colab creates a VM instance with all needed dependencies, launches the Colab environment, and loads the notebook.

You can also run the notebook using user-managed notebooks. When you create a user-managed notebooks instance with Vertex AI Workbench, you have full control over the hosting VM. You can specify the configuration and environment of the hosting VM.

To open a notebook tutorial in a Vertex AI Workbench instance:

  1. Click the Vertex AI Workbench link in the notebook list. The link opens the Vertex AI Workbench console.
  2. In the Deploy to notebook screen, type a name for your new Vertex AI Workbench instance and click Create.
  3. In the Ready to open notebook dialog that appears after the instance starts, click Open.
  4. On the Confirm deployment to notebook server page, select Confirm.
  5. Before running the notebook, select Kernel > Restart Kernel and Clear all Outputs.

List of notebooks

  • Select a service
  • AutoML
  • BigQuery
  • BigQuery ML
  • Custom training
  • Image
  • Ray on Vertex AI
  • Tabular
  • Text
  • Vector Search
  • Vertex AI Experiments
  • Vertex AI Feature Store
  • Vertex AI model evaluation
  • Vertex AI Model Monitoring
  • Vertex AI Model Registry
  • Vertex AI Pipelines
  • Vertex AI Prediction
  • Vertex AI TensorBoard
  • Vertex AI Vizier
  • Vertex AI Workbench
  • Vertex Explainable AI
  • Vertex ML Metadata
  • Video

Services Description Open in
Classification for tabular data
Vertex Explainable AI
Batch explanation for AutoML tabular binary classification model.
Learn to use AutoML to create a tabular binary classification model from a Python script, and then learn to use Vertex AI Batch Prediction to make predictions with explanations. Learn more about Classification for tabular data. Learn more about Vertex Explainable AI.
  • Create a Vertex AI managed dataset resource.
  • Train an AutoML tabular binary classification model.
  • View the model evaluation metrics for the trained model.
  • Make a batch prediction request with explainability.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Classification for tabular data
Vertex Explainable AI
AutoML training tabular classification model for online explanation.
Learn how to use AutoML to create a tabular binary classification model from a Python script. Learn more about Classification for tabular data. Learn more about Vertex Explainable AI.
  • Create a Vertex AI dataset resource.
  • Train an AutoML tabular binary classification model.
  • View the model evaluation metrics for the trained model.
  • Create a serving endpoint resource.
  • Deploy the Model resource to a serving endpoint resource.
  • Make an online prediction request with explainability.
  • Undeploy the Model resource.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Batch Prediction
Custom training image classification model for batch prediction with explainabilty.
Learn to use Vertex AI Training and Vertex Explainable AI to create a custom image classification model with explanations, and then you learn to use Vertex AI Batch Prediction to make a batch prediction request with explanations. Learn more about Vertex Explainable AI. Learn more about Vertex AI Batch Prediction.
  • Create a Vertex AI custom job for training a TensorFlow model.
  • View the model evaluation for the trained model.
  • Set explanation parameters for when the model is deployed.
  • Upload the trained model artifacts and explanation parameters as a Model resource.
  • Make a batch prediction with explanations.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Prediction
Custom training image classification model for online prediction with explainability.
Learn how to use Vertex AI training and Vertex Explainable AI to create a custom image classification model with explanations. Learn more about Vertex Explainable AI. Learn more about Vertex AI Prediction.
  • Create a Vertex AI custom job for training a TensorFlow model.
  • View the model evaluation for the trained model.
  • Set explanation parameters for when the model is deployed.
  • Upload the trained model artifacts and explanations as a model resource.
  • Create a serving endpoint resource.
  • Deploy the model resource to a serving endpoint resource.
  • Make a prediction with explanation.
  • Undeploy the model resource.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Batch Prediction
Custom training tabular regression model for batch prediction with explainabilty.
Learn how to use Vertex AI training and Vertex Explainable AI to create a custom image classification model with explanations. Learn more about Vertex Explainable AI. Learn more about Vertex AI Batch Prediction.
  • Create a Vertex AI custom job for training a TensorFlow model.
  • View the model evaluation for the trained model.
  • Set explanation parameters for the model.
  • Upload the trained model artifacts as a model resource.
  • Make a batch prediction with explanations.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Prediction
Custom training tabular regression model for online prediction with explainabilty.
Learn how to use Vertex AI training and Vertex Explainable AI to create a custom tabular regression model with explanations. Learn more about Vertex Explainable AI. Learn more about Vertex AI Prediction.
  • Create a Vertex AI custom job for training a TensorFlow model.
  • View the model evaluation for the trained model.
  • Set explanation parameters for when the model is deployed.
  • Upload the trained model artifacts and explanations as a model resource.
  • Create a serving endpoint resource.
  • Deploy the model resource to a serving endpoint resource.
  • Make a prediction with explanation.
  • Undeploy the model resource.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Prediction
Custom training tabular regression model for online prediction with explainabilty using get_metadata.
Learn how to create a custom model from a Python script in a Google prebuilt Docker container using the Vertex AI SDK. Learn more about Vertex Explainable AI. Learn more about Vertex AI Prediction.
  • Create a Vertex AI custom job for training a TensorFLow model.
  • Train a TensorFlow model.
  • Retrieve and load the model artifacts.
  • View the model evaluation for the trained model.
  • Set explanation parameters.
  • Upload the model as a Vertex AI model resource.
  • Deploy the Model resource to a serving endpoint resource.
  • Make a prediction with explanation.
  • Undeploy the Model resource.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Vertex AI Prediction
Explaining image classification with Vertex Explainable AI.
Learn how to configure feature-based explanations on a pre-trained image classification model and make online and batch predictions with explanations. Learn more about Vertex Explainable AI. Learn more about Vertex AI Prediction.
  • Download pretrained model from TensorFlow Hub
  • Upload model for deployment
  • Deploy model for online prediction
  • Make online prediction with explanations
  • Make batch predictions with explanations
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex Explainable AI
Explaining text classification with Vertex Explainable AI.
Learn how to configure feature-based explanations using the sampled Shapley method on a TensorFlow text classification model for online predictions with explanations. Learn more about Vertex Explainable AI.
  • Build and train a TensorFlow text classification model
  • Upload model for deployment
  • Deploy model for online prediction
  • Make online prediction with explanations
Colab
Colab Enterprise
GitHub
Vertex AI Workbench
Vertex AI Workbench
Vertex Explainable AI
Taxi fare prediction using the Chicago Taxi Trips dataset.
The goal of this notebook is to provide an overview on Vertex AI features like Vertex Explainable AI and BigQuery in Notebooks by trying to solve a taxi fare prediction problem. Learn more about Vertex AI Workbench. Learn more about Vertex Explainable AI.
  • Loading the dataset using "BigQuery in Notebooks".
  • Performing exploratory data analysis on the dataset.
  • Feature selection and preprocessing.
  • Building a linear regression model using scikitlearn.
  • Configuring the model for Vertex Explainable AI.
  • Deploying the model to Vertex AI.
  • Testing the deployed model.
  • Clean up.
Colab
Colab Enterprise
GitHub
Vertex AI Workbench