bernhardtwo
About

Bernardo Vega

I build end-to-end ML systems, from raw data to a service in production.

Role
Machine Learning Engineer
Location
Mexico
Email
[email protected]
GitHub
github.com/bernhardtwo

I build ML systems end to end: ingestion, features, training, and the service that serves them. I came from full-stack, so the model and the infrastructure around it are the same job to me.

Most of the work in ML is not the model. It is the splits, the evaluation, and everything that has to keep running after the notebook is closed.

Machine Learning
Learning-to-rank, Clustering, Feature engineering, Evaluation / metrics, MLflow
Languages
Python, TypeScript, SQL
Backend / Serving
FastAPI, NestJS, PostgreSQL, MCP, Claude Agent SDK
Frontend
Next.js, React, Tailwind CSS
Platform
Docker, GitHub Actions, Azure, Cloudflare
Projects
GeoPlay RecommenderCompleted2025
LedgerLensIn progress2026
CaseLensCompleted2026
VGC Replay CoachIn progress2026

GeoPlay Recommender 2025

Open Repo

Player segmentation and geospatial recommendation for location-based mobile games.

End-to-end ML system for a synthetic Pokémon GO-style game. It generates realistic behavior data, segments players into archetypes via clustering, and ranks geographic hexes (H3) by visit probability using learning-to-rank. Built as a demonstration of production-grade ML engineering.

Results
Synthetic events
146M
NDCG@10 (ranking)
0.63 · +137%
Clustering ARI (HDBSCAN)
0.864
Phases completed
10 / 10
  • Streaming feature engineering over 146M partitioned events, without loading everything into memory.
  • Leak-free temporal splits: the ranker features are computed only over the training period.
  • Hard negative mining: negatives are drawn from each player’s visited-hex universe, not random.
  • LightGBM Ranker (LambdaRank) tuned by random search; MLflow for tracking and registry.
  • Containerized FastAPI service that serves from an exported bundle, with no MLflow dependency at runtime.
  • Honest analysis of the model plateau (NDCG@10 ≈ 0.63) and discarded features, documented.
Stack
Python 3.12, LightGBM, H3, HDBSCAN, MLflow, FastAPI, Docker, pytest, Ruff