From data to deployed. ๐
The last module. Build a model end-to-end โ data โ development โ serving โ plus MLOps, and a peek at how a neural network actually learns.
Module 4 โ 6 Chapters ๐บ๏ธ
The official AI Development Workflow course. The whole journey, from raw data to a model in production.
1 ยท The ML Workflow
3 stages overview
2 ยท Data Preparation
Upload + features
3 ยท Model Development
Train + evaluate
4 ยท Model Serving
Deploy + monitor
5 ยท MLOps
Automate the workflow
6 ยท How ML Learns
Inside a neural net
Building ML = Running a Restaurant ๐ฝ๏ธ
Three stages. You start with raw ingredients and finish by serving the dish.
STAGE 1
๐ฅ Data Preparation
Prep the raw ingredients
STAGE 2
๐จโ๐ณ Model Development
Experiment with recipes
STAGE 3
๐ฝ๏ธ Model Serving
Serve the meal
It's a Loop, Not a Line ๐
The workflow is iterative. You go back and forth โ e.g. while training you might return to the data for better features; while monitoring you might catch drift and adjust.
๐ฑ๏ธ AutoML
- Build the whole workflow through the UI
- Little ML expertise, no coding
โจ๏ธ Code path
- Workbench / Colab + pre-built SDKs
- Automate the workflow programmatically
Stage 1 โ Prep the Ingredients ๐ฅ
Two steps: upload the data, then engineer the features. Data can come from Cloud Storage, BigQuery, or your local machine.
AutoML tabular objectives
Regression
Predict a number
Classification
Predict a category
Forecasting
Predict over time
Feature Engineering ๐ช
Before cooking, you peel the carrots and chop the onions. Same with data โ you process it before the model trains.
Vertex AI Feature Store ๐๏ธ
A central repository to manage, serve & share features โ for real-time (online) and batch (offline) serving. Even ready for Gen AI embeddings.
Shareable
One central source โ consistency across the org.
Reusable
Save time, no duplicated effort.
Scalable
Auto-scales for low-latency serving.
Easy to use
Friendly UI.
Stage 2 โ Cook & Taste ๐จโ๐ณ
Two steps that loop: train the model (cook the recipe), then evaluate it (taste the meal). Repeat.
To set up training you specifyโฆ
Method
Your dataset ยท AutoML or custom
Objective
The task โ e.g. classification
Details
Target column, features, budget
Evaluate โ The Confusion Matrix ๐ข
Did the model "predict cat" correctly? Four outcomes. (โ = the model was right.)
Cat
Not
Tune the Spam Threshold โ๏ธ
Sort the Predictions ๐ข
Feature Importance & Explainable AI ๐
Vertex AI shows a bar chart of feature importance โ how much each feature contributes to a prediction. Longer bar = more important.
Stage 3 โ Serve the Meal ๐ฝ๏ธ
Two steps: deploy the model (serve the dish), then monitor it (check it's running well). Model management runs across the whole workflow.
Online
Deploy to an endpoint ยท real-time, low latency ยท instant recommendations
Batch
No endpoint needed ยท many rows at once ยท bi-weekly campaigns
Edge
Off-cloud, on a device ยท low latency, privacy, offline ยท factory camera
Online, Batch, or Edge? โก๐ฆ๐ฑ
MLOps โ DevOps for ML ๐
MLOps applies DevOps principles to ML. It solves the production pain: in ML, both data and code keep changing.
Pipelines & Components ๐งฉ
A pipeline is built from components โ each a self-contained piece of code that does one task. Think of a component like a function.
๐งฑ Pre-built components
- e.g. create dataset, train AutoML, create endpoint, deploy model
- Check these first before writing your own
โ๏ธ Custom components
- For special tasks โ e.g. a deploy threshold check
- Each component: one single responsibility
3 Phases of MLOps Maturity ๐
Inside a Neural Network ๐ง
Optional deep-dive. Every network โ DNN, CNN, RNN, even LLMs โ stems from the basic Artificial Neural Network (ANN). Three layers:
How It Learns โ The Loop ๐
One pass of this whole loop = one epoch. Repeat until the error stops shrinking.
1โ2
Weighted Sum + Activation
Combine inputs ร weights, add non-linearity
3โ4
Predict ลท
Output a guess
5
Loss
Measure ลท vs actual y
6
Backpropagation
Find which weights to blame
6
Gradient Descent
Nudge weights downhill
7
Repeat (Epoch)
Until loss bottoms out
Activation Functions โ Tap ๐
๐ ReLU
ใฐ๏ธ Sigmoid
๐ Tanh
๐ฏ Softmax
Loss, Gradient Descent & the Knobs ๐๏ธ
๐ง Parameters
- Weights & biases
- You only set the starting values
๐๏ธ Hyperparameters
- Layers, neurons, activation, learning rate, epochs
- AutoML can pick these for you
Lock It In ๐งช
Q1The three ML workflow stages, in order:
Q2To automate the workflow with code, you use:
Q3Data for ML can come from:
Q4To catch as MANY spam emails as possible, optimise for:
Q5The two steps of model serving are:
Q6The backbone of MLOps on Vertex AI is:
Q7Why do we need activation functions?
Q8One full pass of the learning loop is called:
Module 4 โ You Can Now Explainโฆ โ
๐งช Step 1 ยท Lab โ Build an ML Model with AutoML on Vertex AI
Walk the three stages end-to-end; tune precision & recall, read feature importance. Open the lab โ
๐ Step 2 ยท Official Module 4 Quiz โ
After the lab, take the graded quiz on Skills Boost. skills.google โบ course 593 โบ quiz 617916
You built the whole thing. ๐
Foundations โ Generative AI โ Development Options โ the Workflow. Four modules, the full picture of AI & ML on Google Cloud. Rest tonight, hydrate โ you've done the hard part.