Lab build

Australia rain prediction with three CI/CD systems

Predicts next-day rain in Australia with XGBoost, deployable to GKE from GitHub Actions, CircleCI or GitLab.

Role
Builder, end to end
Group
MLOps
Services
AI & LLM systems · MLOps & cloud

What it does

Weather records are cleaned (Date dropped, numeric gaps mean-filled, remaining nulls dropped), categoricals are label-encoded and RainTomorrow is the target. An XGBoost classifier is trained in a training pipeline and served through a Flask form. The Dockerfile and Kubernetes manifest are deployed to GKE through GitHub Actions, CircleCI and GitLab CI configurations kept in one repository.

What was built

  1. 01

    Processing drops Date, mean-fills numeric nulls, drops remaining gaps and label-encodes categorical columns.

  2. 02

    XGBClassifier trains on the processed split with RainTomorrow as the target and is saved for the app.

  3. 03

    Flask app collects weather inputs and returns a rain or no-rain prediction.

  4. 04

    One repository holds GitHub Actions, CircleCI and GitLab CI pipelines that build, push and deploy to GKE.

The pipeline, layer by layer

Five layers, one pipeline.

  1. L1Data

    • Weather CSV
    • Cleaning and encoding
  2. L2Training

    • XGBoost classifier
  3. L3Serving

    • Flask app
  4. L4CI/CD

    • GitHub Actions
    • CircleCI
    • GitLab CI
  5. L5Runtime

    • Artifact Registry
    • GKE deployment

Stack

  • pandas
  • scikit-learn
  • XGBoost
  • Flask
  • Docker
  • Kubernetes
  • GKE
  • Google Artifact Registry
  • GitHub Actions
  • CircleCI
  • GitLab CI/CD

Next lab build · 22 / 46

Iris classifier with CircleCI, GitLab CI and GitHub Actions

The same decision-tree classifier shipped to GKE through three separate CI/CD pipelines.

Previous: Colorectal cancer survival prediction on Kubeflow

Need a system like this in production? Tell us about it.