[BD]

Work & Case Studies

Each case study covers the problem, what I actually decided, and the result, including the results I didn't expect. Smaller projects follow below.

Case Study

FlyRank CTR Opportunity Scoring

  • Python
  • DuckDB
  • Scikit-learn
  • Random Forest
  • Pandas

The Problem

A content reviewer with time for about 50 pages per cycle needs an ordered queue, not 500 unranked candidates. Rankings don't reliably predict clicks: CTR falls unevenly across ranking positions and content types, so a single fixed rule is too rigid.

What I did

I framed it as ranking via binary classification. A page counts as an anomaly if its CTR is below half the median of pages in the same position tier and content type. The model uses five features knowable before review (impressions, average position, content age, word count, engagement rate); I excluded ctr and clicks because ctr is an ingredient in the label. I engineered the feature pipeline using DuckDB on a ~78.8M-row warehouse to verify grain, availability, and scale, then modelled on a focused 30k-row starter slice (22,006 pages with 100+ impressions, 30 clients). I wrote a transparent baseline rule before any model training, then compared Logistic Regression and Random Forest on the same client-holdout split (75/25 by client, seed 42). Finally I combined model scores with the rule into six reason-coded action archetypes, including a do-not-act group.

What came of it

On 4,610 held-out rows from 8 unseen clients, the Random Forest reached an observed Precision@50 of 0.640 and Precision@20 of 0.850. My hand-written rule scored 0.260 at Precision@50, slightly below chance level (0.286) on unseen clients. A naive random split had inflated the result to 0.940 because 26 of 30 clients (87%) appeared in both train and test. I also planted two leaks on purpose to check that the validation harness catches them: reintroducing trend_pct raised in-sample accuracy from 0.6445 to 0.9999 in the warehouse contract stage, and reintroducing ctr raised Precision@50 from 0.640 to 0.980. Both were removed before any reported result.

MethodPrecision@20Precision@50
Random chance0.2860.286
Hand-written rule0.3500.260
Logistic Regression0.5500.480
Random Forest (final)0.8500.640

Same held-out test set for every row: 4,610 rows, 8 clients unseen in training, 28.6% positive rate.

Known limitations

  • The label is a proxy (CTR below peer median), not proof that a page's metadata is broken. About 1 in 3 of the top-50 flags is not a real anomaly.
  • Opportunity size limit: top-ranked pages often have exactly zero clicks and sit near the 250-impression floor, meaning absolute click recovery is small.
  • Single-seed variance: The 0.640 precision fluctuates across random seeds (mean 0.74, std 0.15) and is an observed snapshot rather than a strict guarantee.
  • Observational data: nothing here shows that rewriting a title or meta description recovers clicks.
  • All 3 false positives in the top-20 sat near the 100–250 impression floor, where CTR estimates are noisiest.

Guardrails

  • Never auto-publish a rewritten title or meta description from a model score alone.
  • Never treat a high-confidence tier as proof that a rewrite will recover clicks.
  • Never act on a page below the 250-impression visibility floor.
  • Never bulk-refresh content purely by age; the freshness evidence was mixed.
  • Re-check Precision@50 against 0.640 when new data arrives; a drop below roughly 0.50 pauses the queue.

Next time

Add an impression threshold that scales with the volatility of each position tier to filter out small-sample false positives, and validate the label with a controlled before/after test on real metadata edits.

Bar chart showing Random Forest Feature Importances, led by impressions_90d and engagement_rate
Feature importance is spread across five features (impressions 37%, engagement 25%, position 24%, word count 8%, age 6%), which argues against a hidden leak.

The illusion of 94% accuracy

A naive split looked almost perfect (0.940). The gap to the honest 0.640 is the size of the illusion: the model was partly memorizing client-specific CTR levels instead of learning a pattern that carries to a new client. Reporting the lower number was the most valuable lesson of the project.

Case Study

Customer Churn Risk Intelligence

  • Python
  • Scikit-learn
  • LightGBM
  • MLflow
  • Pandera
  • Pydantic
  • FastAPI
  • Docker
  • GitHub Actions

The Problem

Predicting churn in a notebook isn't enough. Marketing needs actionable risk tiers rather than raw binary flags, and engineering needs a reproducible, containerized pipeline that doesn't silently fail when upstream schemas change.

What I did

I enforced declarative data contracts with Pandera (training) and Pydantic (inference). After feature engineering, I compared a linear baseline against tree ensembles using 5-fold stratified CV, tracking experiments, metrics, and parameters in MLflow.

What came of it

Logistic Regression won with a mean CV ROC-AUC of 0.8501, ahead of Random Forest and LightGBM. I serialized it with Skops and served it from a Dockerized FastAPI service that maps probabilities to four business risk tiers. GitHub Actions, Pytest, Ruff, and Release Please handle testing and versioned releases.

Next time

Add SHAP-based explanations to the API response, and put drift monitoring (e.g. Evidently) in the serving container to compare live payloads against the training baseline.

Bar chart comparing Cross-Validated ROC-AUC across Logistic Regression, Random Forest, and LightGBM
Cross-validated ROC-AUC by model. The linear baseline outperformed the tree ensembles for probability-based risk ranking.

Security vs. convenience (Skops over pickle)

Python `pickle` and `joblib` files can execute arbitrary code if tampered with. I traded the convenience of standard serialization for Skops, which restricts what can be loaded at inference time.

More projects

Systems and from-scratch implementations. Where a project is a learning exercise, I say so.

LakeForge

Medallion lakehouse ETL/ELT with idempotent incremental processing, quality quarantine, and governed access.

  • Architected a Docker-first open-source lakehouse utilizing Apache Spark, Delta Lake, Airflow, and DuckDB to process data deterministically.
  • Built a declarative YAML quality engine that enforces strict schemas and quarantines bad rows without silent data drops.
  • Ensured absolute pipeline idempotency through Delta Lake MERGE operations and strict batch lineage tracking across layers.
  • Served Gold-layer tables securely through a FastAPI and DuckDB Analytics API protected by Role-Based Access Control (RBAC).
  • Integrated full-stack observability tracking pipeline SLOs via Prometheus metrics and Grafana dashboards.
  • Apache Spark
  • Delta Lake
  • Airflow
  • DuckDB
  • FastAPI
  • Docker
  • Prometheus
  • Grafana

InsightLedger

End-to-end decision-support analytics stack with governed KPIs, reconciled data, and rigorous A/B testing.

  • Deployed a containerized modern data stack utilizing PostgreSQL, dbt-postgres, and Metabase for self-serve BI.
  • Engineered governed data models with automated dbt data-quality tests (uniqueness, non-null) to guarantee reporting reconciliation.
  • Executed statistically sound A/B experiment analysis using scipy and statsmodels, natively preventing false positives via strict Sample Ratio Mismatch (SRM) checks.
  • Calculated precise business impacts including 2-proportion Z-test p-values, relative conversion lifts, and 95% Confidence Intervals.
  • Automated CI/CD workflows using GitHub Actions to enforce Pytest application testing, Ruff linting, and semantic versioning.
  • PostgreSQL
  • dbt
  • Metabase
  • Python
  • SciPy
  • Statsmodels
  • Docker

StatTest-Pro

End-to-End A/B Testing Analysis Framework with automated SRM checks and executive reporting.

  • Engineered a complete Python SDK that calculates required sample sizes pre-test using Statsmodels to ensure well-powered experiments.
  • Enforced statistical rigor with automated Sample Ratio Mismatch (SRM) checks via Chi-Square Goodness-of-Fit, natively halting evaluations on traffic anomalies.
  • Evaluated proportional metrics using Z-tests to compute exact p-values, relative lifts, and 95% Confidence Intervals.
  • Programmatically generated 1-page HTML executive reports featuring Seaborn/Matplotlib data visualizations and Jinja2 templating.
  • Packaged the framework from scratch and published it natively to PyPI with fully automated semantic versioning via GitHub Actions and Google Release Please.
  • Python
  • SciPy
  • Statsmodels
  • Jinja2
  • Seaborn
  • Pytest
  • PyPI
  • GitHub Actions

DataMart-Flex

Enterprise Star-Schema Data Mart and Self-Serve BI Analytics Hub powered by DuckDB.

  • Engineered an automated ETL pipeline using Python and DuckDB to transform 100,000+ raw transactional records into a strict Kimball-methodology dimensional model.
  • Generated realistic synthetic business datasets (customers, products, channels, and orders) using the Python Faker library to simulate an enterprise data ecosystem.
  • Built a comprehensive Power BI showcase dashboard utilizing explicit DAX and Time Intelligence measures (YTD, MoM Growth, Rolling Averages) for executive reporting.
  • Maintained strict engineering standards with automated Pytest coverage, Ruff linting, pre-commit hooks, and Release Please semantic versioning via GitHub Actions.
  • Python
  • DuckDB
  • Power BI
  • DAX
  • Faker
  • GitHub Actions

CohortLTV-Engine

Automated Customer Cohort Retention and Lifetime Value (LTV) Analytics Engine.

  • In-process analytics using DuckDB to process 1,000,000+ transactional rows locally in ~174ms, massively exceeding the 5-second SLA constraint.
  • Engineered advanced SQL pipelines utilizing Window Functions, CTEs, and aggregated joins to accurately compute month-over-month retention and rolling LTV metrics.
  • Built an automated Python ETL runner scheduled via GitHub Actions with comprehensive execution metadata logging and database handling.
  • Outputs dimensional aggregated flat files perfectly formatted for BI consumption (e.g., Power BI, Tableau).
  • Maintained strict engineering standards with end-to-end Pytest coverage, Ruff linting/formatting, pre-commit hooks, and Release Please semantic versioning.
  • Python
  • DuckDB
  • SQL
  • Pytest
  • GitHub Actions

ExecPulse-BI

Interactive Sales & Operations BI Dashboard built on automated Star-Schema Data Modeling.

  • Designed to tackle scattered data sources by pushing heavy row-level transformations into programmatic Python ETL steps rather than embedding them in BI visuals.
  • Transformed 50,000+ raw transactional logs into a strict dimensional Star Schema (Fact and Dimension tables) using Pandas.
  • Exported normalized data into a local SQLite database via SQLAlchemy and generated flat CSVs for flexible downstream analytics.
  • Built a ready-to-use Power BI dashboard (.pbix) featuring pre-calculated dynamic DAX/LOD measures (Total Revenue, YoY Growth, Rolling 30-Day Sales).
  • Maintained strict engineering standard via Ruff formatting, Pytest, pre-commit hooks, and semantic versioning through Release Please.
  • Python
  • Pandas
  • SQLite
  • SQLAlchemy
  • Power BI
  • DAX
  • GitHub Actions

DataCleanse-Lite

High-throughput ETL pipeline for multi-source e-commerce data with strict Pydantic validation.

  • Processed, cleaned, and validated 100,000 messy records in ~2.24 seconds using in-memory Pandas operations, beating the 30-second SLA by over 13x.
  • Enforced strict data integrity with Pydantic schemas, gracefully quarantining ~21% of corrupted records to flat files rather than silently dropping them.
  • Standardized disparate raw formats (CSV/JSON), imputed missing values, and loaded normalized data into a relational SQLite schema via SQLAlchemy.
  • Maintained strict engineering standards using pre-commit hooks, Ruff for formatting, Pytest for testing, and Release Please for automated semantic versioning.
  • Python
  • Pandas
  • Pydantic
  • SQLite
  • SQLAlchemy
  • Pytest
  • GitHub Actions

InsightStory-EDA

SQL-driven exploratory analysis of e-commerce behavior, automated into a 5-slide executive deck.

  • Built a deterministic synthetic data generator using NumPy/Pandas to simulate realistic e-commerce transactions, product catalogs, and customer archetypes.
  • Engineered analytical SQL pipelines using DuckDB to compute RFM segments, cohort retention, margin leakage, and monthly churn trends.
  • Developed a full Python CLI (insightstory build-db -> analyze -> charts -> deck) to automate the end-to-end analytical workflow.
  • Programmatically generated a 5-slide executive presentation (.pptx and .pdf) complete with automated charts, metric-backed recommendations, and takeaway callouts.
  • Maintained strict engineering standards with comprehensive Pytest coverage, Ruff linting/formatting, and GitHub Actions CI/CD workflows.
  • Python
  • DuckDB
  • SQL
  • Pandas
  • Matplotlib
  • python-pptx
  • CLI

FlowTrace

DAG-orchestrated, parameterized, lineage-tracked ML pipeline with automated quality gating.

  • Orchestrated the pipeline as an explicit Directed Acyclic Graph (DAG) using Prefect to monitor state transitions and isolate failing steps.
  • Enforced strict declarative data boundaries with Pandera, natively halting the pipeline before training jobs if data is corrupt.
  • Implemented end-to-end lineage tracking with MLflow, cryptographically linking every model artifact to a SHA256 hash of its exact training data.
  • Automated model promotion logic to evaluate new runs against the production champion model and assign aliases accordingly.
  • Maintained strict engineering standards using Ruff, pre-commit hooks, Pytest, and GitHub Actions for semantic versioning via Release Please.
  • Prefect
  • MLflow
  • Pandera
  • Scikit-learn
  • Python
  • GitHub Actions

TabTrace

Reproducible tabular ML pipeline enforcing justified feature engineering and cross-validated evaluation.

  • Rejects 'notebook-only' ML: every stage from ingestion to feature engineering is a pure, unit-tested function.
  • Enforces declarative feature justifications via a custom registry decorator; the pipeline halts if a rationale is missing.
  • Uses deterministic, saved train/val/test splits with explicit leakage checks to ensure honest evaluation.
  • Compares a Logistic Regression baseline against a grid-searched Random Forest using 5-fold cross-validation.
  • Automated CI/CD gating merges with Pytest (>90% coverage enforced), Ruff formatting, and Release Please semantic versioning.
  • Python
  • Scikit-learn
  • Pandas
  • Pytest
  • GitHub Actions

ModelGate

Production-ready, containerized machine learning inference API and Python SDK.

  • Dynamic artifact loading: instantly serves Scikit-Learn/Joblib models from local paths or HTTP URLs via environment variables.
  • Native Python SDK: Available on PyPI (modelgate-py) to integrate dynamic loading and strict validation directly into existing codebases.
  • Strict JSON Schema boundary validation that dynamically blocks malformed payloads from ever reaching the inference engine.
  • Robust 'Error Shielding' overrides default exception handlers to prevent raw Python stack traces from leaking to clients, returning safe 422/500 JSON.
  • Fully Docker-native, rigorously tested with Pytest (including interactive SDK notebook tests), and enforced by GitHub Actions.
  • FastAPI
  • Docker
  • Python
  • PyPI
  • Pytest
  • Scikit-learn
  • GitHub Actions

ServeScale

Horizontally scalable, latency-optimized machine learning model serving system built on Kubernetes.

  • Leveraged ONNX Runtime and 8-bit Dynamic Quantization to significantly minimize the model's container memory footprint and CPU latency.
  • Configured Kubernetes deployment topology with liveness and readiness probes to safely handle auto-scaling and pod lifecycle events.
  • Integrated Locust load testing to explicitly verify that exactly 0 requests are dropped during live RollingUpdates under concurrent HTTP traffic.
  • Built as a robust FastAPI application, containerized via Docker, and tested strictly via Pytest.
  • Kubernetes
  • ONNX Runtime
  • FastAPI
  • Docker
  • Locust
  • Pytest

OverfitLab

Deep learning experiment demonstrating the diagnosis and correction of overfitting.

  • Simulated a classic neural network failure mode (memorizing noise) using a highly non-linear synthetic dataset.
  • Diagnosed train/validation divergence on a deep Multi-Layer Perceptron (MLP) baseline.
  • Restored model generalization by applying Dropout and L2 Weight Decay using PyTorch.
  • Packaged as a reproducible Python module with deterministic data generation and Matplotlib visualizations.
  • Enforced code quality and robustness with Pytest, Ruff, pre-commit hooks, and GitHub Actions.
  • PyTorch
  • Python
  • Scikit-learn
  • Matplotlib
  • Pytest

Aegis Omnisearch Agent

Lightweight RAG agent for resource-constrained deployments.

  • Custom ReAct-style reason-and-act loop using the Gemini API for tool selection and grounded answers.
  • Local retrieval with FAISS and INT8 ONNX Runtime for CPU inference.
  • PDF processing designed around limited memory: page-by-page streaming and micro-batched indexing.
  • GitHub Webhook mechanism for updating the indexed knowledge during deployment.
  • Python
  • Gemini API
  • FAISS
  • ONNX Runtime
  • FastAPI

LexiByte

Byte-Pair Encoding tokenizer implemented from scratch, published on PyPI.

  • GPT-style regex pre-tokenization with Unicode-aware patterns for words, numbers, and punctuation.
  • Frequency dictionary built during BPE training to avoid unnecessary merge checks.
  • Memoization to avoid repeated tokenization work at inference.
  • UTF-8 byte-level fallback so there are no out-of-vocabulary failures.
  • Python
  • BPE
  • PyPI

NanoTransformer & Forge-LM

Transformer implementation, training, and lightweight inference, end to end.

  • NanoTransformer: GPT-2-style decoder written with PyTorch primitives, using my own LexiByte tokenizer, with experiments in FlashAttention and bfloat16 mixed precision.
  • Forge-LM: scaled to ~28M parameters and trained on TinyStories, using gradient accumulation to fit in ~6 GB VRAM.
  • Exported to ONNX with INT8 dynamic quantization, served through a FastAPI + NumPy inference service in Docker, and tested in low-memory environments.

Scope: A learning project on a small dataset. It demonstrates the path from architecture to training to lightweight serving, not state-of-the-art generation quality.

  • PyTorch
  • ONNX
  • INT8 quantization
  • FastAPI
  • Docker

Multimodal Phishing Detection Platform

Phishing detection combining URL structure with linguistic signals.

  • Combined structured URL features (ISCX dataset) with linguistic features (PhiUSIIL dataset).
  • Soft-voting fusion across models; XGBoost with Platt scaling via CalibratedClassifierCV for calibrated probabilities.
  • Exposed through FastAPI with an interactive Streamlit evaluation UI, run with Docker Compose.
  • XGBoost
  • Scikit-learn
  • FastAPI
  • Streamlit
  • Docker Compose

ZeroProp Engine & Live Dashboard

Neural network built without a DL framework, with real-time training visualization.

  • Dense layers, ReLU, and Softmax cross-entropy implemented with NumPy matrix operations, including forward pass, loss, and backpropagation.
  • FastAPI WebSockets stream training metrics to a React + HTML5 Canvas dashboard showing epoch, loss, and accuracy live.

Scope: Built to understand the mechanics, not as a replacement for PyTorch.

  • NumPy
  • FastAPI
  • WebSockets
  • React
  • Canvas

LunarLander-v2 Agent

Reinforcement-learning agent trained with PPO.

  • Trained an agent to land a lunar module on its pad using Proximal Policy Optimization.

Scope: A standard RL benchmark environment, done as a learning exercise.

  • Reinforcement learning
  • PPO
  • Python

All code is public on GitHub.

View Profile