Choose how to build a Google Cloud AI solution
A retailer’s analysts already know SQL and have several years of sales in BigQuery. They need a baseline forecast this month. Should the team begin by training a large custom model from scratch?
Choose how to build a Google Cloud AI solution
The bank’s SQL analysts can use BigQuery ML to forecast monthly card spending from existing data.
Work through the decision
A retailer’s analysts already know SQL and have several years of sales in BigQuery. They need a baseline forecast this month. Should the team begin by training a large custom model from scratch?
Check your reasoning
Start with a model suited to the decision and the available team. BigQuery ML can train and evaluate supported forecasting models against data already in the warehouse. Compare with a simple baseline on a held-out period before committing to extra infrastructure.
Interpret the evidence
- BigQuery ML
- Uses SQL to create and evaluate supported models near data in BigQuery.
- Pre-trained API
- Uses a managed capability for a defined task without training a bespoke model. Test performance on actual inputs and languages.
- AutoML
- Trains a task-specific model from suitable labeled examples while managing much of the model-building process.
- Gemini Enterprise Agent Platform
- Supports building and managing agents with tools, deployment and governance. Define execution identity and approval needs.
- AI Hypercomputer
- Combines accelerator infrastructure, optimized software and consumption choices for demanding AI workloads.
Practice the guide skills
- Compare a pre-trained API, a managed custom model and a hand-built solution by delivery time, staff expertise, cost and differentiation. Watch 1:18:13
- Sketch an agent using Gemini Enterprise Agent Platform, Agent Studio or the Agent Development Kit. Specify its tools, identity, test cases and approval policy. Watch 1:19:00
- Match image labeling, multilingual text, speech transcription and drafting to Vision, Translation, Speech-to-Text and a suitable Gemini model. Test quality on representative inputs. Watch 1:20:35
- For a proprietary defect dataset, compare visual agent authoring with training a supervised model using AutoML. Identify which task actually requires labeled examples. Watch 1:25:45
- Explain how GPUs or TPUs, optimized software and scheduling influence the cost and performance of a training run on AI Hypercomputer. Compare cost per completed run. Watch 7:48
- Fit a baseline forecast with supported BigQuery ML functionality and SQL in the warehouse. Evaluate it against a held-out period before using it for inventory decisions. Watch 1:28:44
Official objectives for this lesson
Choose a useful first forecast
A retailer evaluates demand forecasts for four weeks that were withheld from training.
Actual demand 100 120 110 130
Simple baseline 100 100 120 110
Candidate model 95 118 107 132
Mean absolute error falls from 12.5 units to 3 units in this small example. Evaluate enough holdout periods to represent seasonality, check the cost of large misses and decide whether the improvement justifies operating the model.
Related lesson · Operate revisions, clusters and agent deployments
Choose how to build a Google Cloud AI solution quiz
Answer 3 questions. Check each answer for an explanation.