IT Vizag
← MLOps: Shipping ML Models

▶ Sign up free for the video, slides & prompts

The lesson below is open to all. Enter your email once to unlock every video, slide deck, prompt and code example on this device.

Checking…

MLOps: Shipping ML Models · Lesson 13 of 14 · 2 min read · 7 min video

Project: deploy a Vizag house-price model end to end

Train, track, serve, deploy and monitor a complete model.

📄 Download slides (PDF)· free sign-up

Time to put it all together. You'll take a house-price model for Visakhapatnam from a notebook all the way to a monitored service in the cloud.

1. Project and environment

  • Turn the notebook into src/ modules: data, features, train, predict and api
  • Put settings in params.yaml and pin versions in requirements.txt
  • Add a Dockerfile, and tests for features and the API

2. Data and experiments

  • Version houses.csv with DVC: sqft, bedrooms, age and area (MVP Colony, Madhurawada, Gajuwaka, Seethammadhara…)
  • Track every training run in MLflow with the MAE on a fixed validation set
  • Register the best model as v1

3. Pipeline

🔒 Code example: sign up free (above) to unlock it.

The gate promotes a model only if its MAE beats production by at least 2%.

4. Serve

A FastAPI /predict endpoint that:

  • validates inputs with a schema, including a list of known areas
  • uses the shared feature module
  • returns the price and the model version
  • logs each prediction with a request ID

5. CI/CD

GitHub Actions runs the tests, a small training run and behaviour checks on each PR. On merge, it builds the image, deploys to Cloud Run in asia-south1 and keeps the previous revision for rollback.

6. Monitor and retrain

  • Dashboards for latency, errors and predictions per area
  • A weekly drift check on sqft, area mix and the prediction distribution
  • Monthly retraining through the same pipeline, plus a trigger when drift alerts fire

What "done" looks like

Someone new can clone the repo, run one command to reproduce v1, and see exactly which data and code made the model that's serving traffic right now.

Tip: Build the whole path with a simple model first, even linear regression. Improve the model once the pipeline around it works.

In one line

A shipped model is a reproducible project, versioned data, tracked experiments, a gated pipeline, a validated API, CI/CD, monitoring and planned retraining, all connected.

Saved on this device. Sign in to keep progress everywhere.

Share with a friend