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
Sign in to your Google Account.
If you don't already have one, sign up for a new account.
In the GCP Console, go to the Manage resources page and select or create a project.
Make sure that billing is enabled for your Google Cloud Platform project.
- Enable the Cloud AutoML and Storage APIs.
Create a dataset and train a model
Visit AutoML Tables in the Google Cloud Platform Console to begin the process of creating your dataset and training your model.
Select Datasets, and then select New dataset.
Quickstart_Datasetfor the dataset name and click Create dataset.
On the Import your data page, choose CSV from Google Cloud Storage.
cloud-ml-tables-data/bank-marketing.csvfor the bucket.
The dataset import takes a few minutes to complete.
After the dataset import completes, select
Depositfor the Target column.
The target column identifies the value the model will be trained to predict.
After the statistics for your dataset have refreshed, you can review and verify the statistics for the imported data.
You can click individual rows to see more about distribution and correlation for a specific feature.
Select the Train tab. Enter
Quickstart_Modelfor Model name, and
1for Training budget.
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.
Select the Evaluate tab for a detailed view of the model evaluation metrics.
For this model,
1represents a negative outcome--a deposit is not made at the bank.
2represents 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.
You can also scroll down to see the confusion matrix and feature importance graph.
Select the Predict tab, and click Online prediction.
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 fills in sample data to help you test your model. Click PREDICT to request the online prediction.
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.
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.
- Select Models and click on the model you want to undeploy.
- Select the Predict tab and click Online prediction.
- Click Remove deployment.
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 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.