Skip to content

Latest commit

 

History

History

GSP684_Compare-Cloud-AI-Platform-Models-using-the-What-If-Tool-to-Identify-Potential-Bias

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

GSP684 —— Compare Cloud AI Platform Models using the What-If Tool to Identify Potential Bias

Table of Contents (🔎 Click to expand/collapse)

Overview

In this lab, you deploy two models on Cloud AI Platform, and then use the What-If Tool to identify potential bias in the models and underlying dataset. You will have the opportunity to address identified bias, retrain the models, redeploy them, and continue to compare them with the What-If Tool.

Objectives:

  • Train tf.keras and Scikit Learn models in Cloud AI Platform Notebooks.
  • Deploy models to AI Platform Predictions.
  • Use the What-If Tool to analyze and compare the models.

Deploy Models to AI Platform

# create a model
$ gcloud ai-platform models create <MODEL_NAME> --regions=<REGION>

# create a version
$ gcloud ai-platform versions create <VRESION_NAME> \
    --model=<MODEL_NAME> \
    --framework=<FRAMEWORK> \
    --runtime-version=<RUNTIME_VERSION> \
    --origin=<MODEL_BUCKET> \
    --staging-bucket=<MODEL_BUCKET> \
    --python-version=<PYTHON-VERSION> \
    --project=<PROJECT> \
    --region=<REGION>

References