Quickstart

This quickstart walks you through the process of using AutoML Tables web application to do the following steps:

  • Create a dataset.
  • Import table data from a CSV file into the dataset.
  • Identify schema columns in the imported data.
  • Train a model from the imported data.
  • Use the model to make predictions.

The entire process takes a couple of hours to complete. Most of that time is not active time; you can close your browser window and return to the task later.

Before you begin

Create a project and enable AutoML Tables

  1. Sign in to your Google Account.

    If you don't already have one, sign up for a new account.

  2. In the GCP Console, on the project selector page, select or create a GCP project.

    Go to the project selector page

  3. Make sure that billing is enabled for your Google Cloud Platform project. Learn how to enable billing.

  4. Enable the Cloud AutoML and Storage APIs.

    Enable the APIs

Sample data

This quickstart uses the Bank marketing open-source dataset, which is available through a Creative Commons CCO: Public Domain license. The column names have been updated for clarity.

Create a dataset and train a model

  1. Visit AutoML Tables in the Google Cloud Platform Console to begin the process of creating your dataset and training your model.

    Go to the AutoML Tables page

  2. Select Datasets, and then select New dataset.

    AutoML Tables datasets page

  3. Enter Quickstart_Dataset for the dataset name and click Create dataset.

  4. On the Import your data page, choose CSV from Google Cloud Storage.

  5. Enter cloud-ml-tables-data/bank-marketing.csv for the bucket.

  6. Click Import.

    AutoML Tables create dataset page

    The dataset import takes a few minutes to complete.

  7. After the dataset import completes, select Deposit for the Target column.

    The target column identifies the value the model will be trained to predict.

    Click Continue.

    AutoML Tables schema page

  8. After the statistics for your dataset have refreshed, you can review and verify the statistics for the imported data.

    imported dataset statistics

    You can click individual rows to see more about distribution and correlation for a specific feature.

    dataset row specifics

  9. Select the Train tab. Enter Quickstart_Model for Model name, and 1 for Training budget.

    AutoML Tables train page

  10. In the Summary section, click the Train button to train your model.

    Model training takes about two hours to complete. After the model is successfully trained, the Train tab shows high-level metrics for the model.

    High-level metrics for a trained model

  11. Select the Evaluate tab for a detailed view of the model evaluation metrics.

    For this model, 1 represents a negative outcome--a deposit is not made at the bank. 2 represents a positive outcome--a deposit is made at the bank.

    You can select a label to see specific evaluation metrics for that label. You can also adjust the Score threshold to see how the metrics differ for different threshold values.

    AutoML Tables evaluate page

    You can also scroll down to see the confusion matrix and feature importance graph.

    Confusion matrix and feature importance graph

  12. Select the Predict tab, and click Online prediction.

  13. Click Deploy model to deploy your model.

    You must deploy your model before you can request online predictions. Deploying a model takes a few minutes to complete.

    AutoML Tables evaluate page

  14. AutoML Tables fills in sample data to help you test your model. Click PREDICT to request the online prediction.

    AutoML Tables predict page

    AutoML Tables determines the probability of a positive outcome ('2' = deposit) based on the input values and displays the confidence values for the prediction in the Test your model section.

    You can also submit prediction requests in batch form. Learn more.

Cleanup

If you no longer need your custom model or dataset, you can delete them.

To avoid unnecessary Google Cloud Platform charges, use the GCP Console to delete your project if you do not need it.

Undeploy your model

Your model incurs charges while it is deployed.

  1. Select Models and click on the model you want to undeploy.
  2. Select the Predict tab and click Online prediction.
  3. Click Remove deployment.

Undeploy model

Delete a model

To delete a model, select Models. Click the More actions menu for the model that you want to delete, and then select Delete model.

Delete model

Delete a dataset

To delete a dataset, select Datasets. Click the More actions menu for the model that you want to delete, and then select Delete dataset.

Delete dataset

What's next

Was this page helpful? Let us know how we did:

Send feedback about...

AutoML Tables Documentation