Classification and regression overview Stay organized with collections Save and categorize content based on your preferences.
Binary classification models predict a binary outcome (one oftwo classes). Use this model type for yes or no questions. For example, you might wantto build a binary classification model to predict whether a customer wouldbuy a subscription. Generally, a binary classificationproblem requires less data than other model types.
Multi-class classification models predict one class from threeor more discrete classes. Use this model type for categorization. For example, as aretailer, you might want to build a multi-class classification model to segmentcustomers into different personas.
Regression models predict a continuous value. For example, as a retailer,you might want to build a regression model to predict how much acustomer will spend next month.
Workflow for creating a classification or regression model and making inferences
The process for creating a classification or regression model inVertex AI is as follows:
| Steps | Description |
|---|---|
| 1.Prepare training data | Prepare your training data for model training. |
| 2.Create a dataset | Create a new dataset and associate your prepared training data with it. |
| 3.Train a model | Train a classification or regression model in Vertex AI using your dataset. |
| 4.Evaluate your model | Evaluate your newly trained model for inference accuracy. |
| 5.View model architecture | View the hyperparameter logs of the tuning trials and the hyperparameter logs of the final model. |
| 6. Get inferences from your model | To get real-time inferences, deploy your model andget online inferences. If you don't need real-time inferences, makebatch inference requests directly to your model. |
To see an example of how to create, train, and use an AutoMLclassification model for online predictions, run the "AutoML tabular training and prediction" notebook in one of the following environments:
Open in Colab |Open in Colab Enterprise |Openin Vertex AI Workbench |View on GitHub
To see an example of how to create, train, and use an AutoMLregression model for batch predictions, run the "AutoML training tabular regression model for batch prediction using BigQuery" notebook in one of the following environments:
Open in Colab |Open in Colab Enterprise |Openin Vertex AI Workbench |View on GitHub
To see an example of how to create, train, and use an AutoMLregression model for online predictions, run the "AutoML training tabular regression model for online prediction using BigQuery" notebook in one of the following environments:
Open in Colab |Open in Colab Enterprise |Openin Vertex AI Workbench |View on GitHub
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Open in Colab
Open in Colab Enterprise
Openin Vertex AI Workbench
View on GitHub