Prepare and test your skills
Prepare and test your skills
Evaluate Use Cases for AutoML and Unstructured Data means deciding when automated training is the right fit for images, text, and other unstructured data. AutoML is the right fit when the task is to assign labels to unstructured items and the team can supply labeled examples but does not want to write custom model code. The team focuses on data quality and evaluation while the platform handles feature engineering, model selection, and training.
AutoML for classification and detection solves labeling problems where each image or text item needs a predicted class or detected object. The AutoML model learns only from the examples it is given, so it cannot understand the meaning of label names or fine differences on its own. Labels such as door and door_with_knob look related to people but look unrelated to the model unless training images show the visual difference. Choose AutoML for these tasks when success depends on providing many representative examples, such as wider-angle images, higher or lower resolution images, and different points of view.
Model evaluation in AutoML is the review of precision, recall, and confusion details on held-out data to decide what to fix next. Low precision and recall can indicate that the model needs more training data or has inconsistent labels. Perfect precision and recall can indicate the opposite problem, where the test data is too easy and the model may not generalize to new data.
A confusion matrix for classification models shows when the model confuses two labels by predicting one label much more often than the true label. That pattern points to mislabeled examples or overlapping label definitions. Use these signals to decide whether to fix labels, add targeted examples, or change the training setup before training a new model.
Exam tip: Low precision and recall points to too little data or inconsistent labels, while perfect precision and recall points to test data that is too easy and may not generalize.
Iteration in AutoML is an ordered cycle where evaluation results lead to a revised model that is compared with the previous model. The cycle preserves the order of learning from results before spending time on retraining:
The following data and training adjustments help models that label items:
Analyze Use Cases Suitable for BigQuery ML means recognizing business problems that can be solved where large tables already live in the warehouse. BigQuery ML is a machine learning capability inside BigQuery that creates and uses models with SQL statements. Training data flows from BigQuery tables directly to the model, and predictions flow back to BigQuery tables, so data does not move to a separate platform.
Why BigQuery ML fits SQL workflows and large datasets is that training, evaluation, and prediction all happen with SQL queries inside BigQuery. An analyst who can write SELECT statements can train a model without setting up notebooks, clusters, or deployment servers. BigQuery handles storage and compute scaling, so the model trains where the data already lives. Choose BigQuery ML when the goal is fast insight from warehouse data using existing SQL skills rather than building custom machine learning pipelines.
Customer segmentation with BigQuery ML is the process of grouping customers with similar behavior so marketing and product teams can treat each group differently. BigQuery ML supports segmentation with clustering models that learn groups from columns such as purchase frequency, total spend, recency, and region. Purchase history flows from the customer table to the clustering model, and the model returns a cluster assignment for each customer row. This use case works well when the business question is who belongs together, the input is a large table of customer attributes, and the team wants results back in SQL for dashboards and reports.
Predictive analytics with BigQuery ML is the use of historical rows in BigQuery to forecast a future category, number, or time-series value. Historical rows flow from a BigQuery table to the model during training, and new rows flow to the trained model to produce predictions that are written back to tables:
Choose these predictive use cases when the outcome is clearly defined, labeled history exists in BigQuery, and the prediction needs to be refreshed with SQL.
Exam tip: Choose BigQuery ML when the data already lives in BigQuery and the team wants to train with SQL; consider a different approach when data lives outside the warehouse or requires extensive custom modeling.
Matching business problems to BigQuery ML strengths means checking that the data shape and SQL workflow align before choosing a model type. All three common patterns share the same flow: source data stays in BigQuery, the model learns inside BigQuery, and results flow back to tables where analysts can filter, visualize, and share them.
| Use case | Business question | Why BigQuery ML fits |
|---|---|---|
| Customer segmentation | Which customers behave similarly? | Clustering runs on large customer tables and returns groups in SQL |
| Churn prediction | Which customers are likely to leave? | Classification learns from historical behavior stored in BigQuery |
| Demand forecasting | What sales volume comes next? | Forecasting uses historical sales series without moving data |
Assess BigQuery ML and AutoML Capabilities means understanding how to evaluate a trained model and how to improve it for real-world data. AutoML simplifies model creation through automated training, but the user still must review evaluation results and decide what to change next. Evaluation metrics provide the starting point for debugging, and a new model can then be compared against the existing model.
Evaluating an AutoML model means reviewing its overall metrics and its detailed evaluation slices to find where predictions succeed or fail. Low precision and recall scores can indicate that the model needs additional training data or has inconsistent labels, while perfect precision and recall can indicate that the test data is too easy to predict and might not generalize well. If the evaluation includes a confusion matrix, the matrix shows whether the model confuses two labels by predicting a particular label significantly more often than the true label.
Detailed evaluations are retrieved through ModelServiceClient, which depends on a regional API endpoint for its requests. The client is created once with the regional endpoint and can be reused for multiple requests, and each request addresses a model with a parent path in the form of projects, locations, and model ID. The client can list model evaluations for that model and then get a specific model evaluation slice by project, location, model ID, evaluation ID, and slice ID. Reviewing the returned slice helps confirm whether examples are correctly labeled and where the model remains confused.
Exam tip: Low precision and recall point to a need for more data or cleaner labels, while perfect precision and recall point to test data that may be too easy and will not generalize.
Iterating on a labeling model, such as a classification or detection model, means changing the training data to fix weaknesses found during evaluation and then training a new model for comparison. Machines cannot interpret class or label names and do not understand nuances between them, so differences such as door and door_with_knob must be taught through examples. Augmenting the data with more examples of true positives and true negatives, especially examples close to a decision boundary, helps reduce model confusion.
The following suggestions help improve labeling models:
Controlling data splits and training time means managing how data is divided for learning and how long automated training is allowed to run. Agent Platform randomly assigns items to the training, validation, and test sets by default, so near-duplicates can end up in both the training and validation sets. That overlap can lead to overfitting, where the model performs well during validation but poorly on the test set, so specifying your own data split helps keep the three sets properly separated.
Training duration also affects quality because AutoML training is limited by a maximum number of node hours. If a model was trained with a short training time, allowing it to train for a longer period with a higher maximum number of node hours may produce a higher-quality model. After retraining with a new split or longer training time, the evaluation metrics of the new model should be compared with the existing model to confirm improvement.
BigQuery ML and AutoML solve different data problems through different workflows. BigQuery ML keeps large structured tables in place and returns segments and predictions through SQL, while AutoML learns labels for unstructured images and text from supplied examples and improves through cycles of evaluation, data fixes, and retraining.
Use BigQuery ML when large tables already live in BigQuery and you want to train, evaluate, and predict with SQL where the data lives. Training data flows from BigQuery tables directly to the model and predictions flow back to BigQuery tables, so data does not move to a separate platform.
Use AutoML when the task is to assign labels to unstructured items and the team can supply labeled examples but does not want to write custom model code. The model learns only from the examples it is given and cannot understand the meaning of label names, so success depends on providing many representative examples such as wider-angle images, different resolutions, and different points of view.
Low precision and recall can indicate that the model needs more training data or has inconsistent labels, while perfect precision and recall can indicate that the test data is too easy and the model may not generalize to new data. A confusion matrix shows when the model confuses two labels by predicting one label much more often than the true label, which points to mislabeled examples or overlapping label definitions.
Improve an AutoML classification or detection model by reviewing evaluation metrics, updating the training data or setup, training a new model, and comparing the new model with the existing model. Useful updates include adding more representative examples, removing labels with too few examples, specifying your own training, validation, and test split, and allowing a longer training time with more node hours.
A retail organization stores several terabytes of customer transaction and interaction data directly in BigQuery. The data analytics team needs to build predictive models for customer churn and group customers into distinct segments for targeted marketing campaigns.
The team has strong SQL skills but lacks software engineering experience in Python or R, and they want to avoid exporting data to external systems or managing training infrastructure.
Which Google Cloud capability should the team use?
Cloud Bigtable
Cloud Data Fusion
BigQuery ML
Vertex AI Custom Training
Last updated