Data Scientist / Machine Learning Engineer
11 solo projects, from hand-written CUDA kernels to causal uplift on 14M ad impressions, plus a merged fix in Apple’s coreai-optimization and a fix landed in Bloomberg’s Memray.
I am Bhargav Nath, a Data Scientist and Machine Learning Engineer with six years of programming experience, including a year and a half building production ML systems. My background spans high-impact forecasting, business experimentation, and data pipeline architecture, as well as low-level systems engineering with custom CUDA kernels and Rust engines.
A running log of calls made under real constraints, what got kept, what got killed, and why.
A pre-registered evaluation on five fresh simulated worlds found the optimiser safe but not shown to beat static prices: mean +34.3 per day, 95% CI [-113.9, +203.9], one world losing 210.9 per day.
Zero constraint violations throughout, execution disabled, and the next step written down as an experiment design rather than more optimiser tuning.
A sampling-performance change in Apple's coreai-models, a correctness fix in Apple's on-device ML optimization stack, and a Memray memory profiler fix, each reviewed and merged upstream.
Top-p and min-p sampling sorted all 262,144 logits of a Gemma 4 vocabulary on every generated token. I replaced the sort with a logit window, a bucketed mass scan and an exact scan over a small sorted prefix, then, through two review rounds, fixed Float accumulation drift and a +inf trap and softmax bug. On one M1 Air the sampler call went from about 31 ms to 2.2 to 2.5 ms for top-p and 0.20 ms for min-p. That is a sampler microbenchmark, not an end-to-end speedup.
"However this would trap when there is a +inf logit in topP, which would happen in an fp16 overflow."
PR reviewer, requesting the change that led to the +inf handling
Fixed a bug where a weight shared across modules could be quantized with one module's precision setting while following a completely different training schedule, a subtle correctness issue in Apple's on-device model optimization pipeline.
"Thanks for contributing to fix this issue! Changes look good to me."
u-simha, Apple (PR reviewer)
Memray's CSV export has tid and thread_name columns, but it always merged allocations across threads, so the same call stack hit on several threads collapsed into one row labelled with a single thread. I first built an opt-in --split-threads flag, then reworked it after maintainer review: CSV is meant to be machine-read, so it now keeps each thread on its own row by default, matching its documented schema, while the gprof2dot and speedscope formats still merge.
"I'm leaving the commit attribution as you since you did basically all of the work here, and I just tweaked the tests and one exception check / message."
godlygeek, Memray maintainer (PR #1056)
Praxis leads, then nine more projects, in the order I would read them. Each page opens with a 30-second brief that includes the biggest caveat.
The same six stages on every project, the tools I reach for at each one, and the principles that keep the result honest. Each principle links to the project that tests it.
$ trace --workflow --stages=6
Ingestion
Raw input, checked at the door
Exploration
Understand it before shaping it
Features
Inputs a model can rely on
Modelling
Baseline first, then earn complexity
Evaluation
Results that survive scrutiny
Delivery
From score to operated decision
Data contracts
Expected schema, types, and value ranges are defined and enforced at the point of entry.
PricePoint Dynamics: Pandera schemas and a leakage test guard the pipeline.
Validation before processing
Completeness, uniqueness, and consistency are checked before any transformation runs.
Customer Intelligence Platform: Re-checking claims against the full data corrected three headline figures; real sessions were 23.0M, not the 15M claimed.
Lineage and provenance
Every dataset carries a record of its source and how it was collected.
Andria Systems: Six CUSIPs OpenFIGI could not resolve stayed unresolved; no identifier was guessed.
Reproducible ingestion
Identical inputs and parameters produce identical output, and interrupted loads re-run safely.
Customer Intelligence Platform: Two silent non-determinism bugs fixed; the numbers now match on a fourth rebuild.
A running record of the roles and coursework behind the work, what each one built, not just when it happened.
$ git log --oneline
Implemented machine learning, data science, and algorithmic workflows live on screen, explaining the what, why, and when of each engineering decision in recordings required by a leading AI frontier lab. Engaged through Mercor as an independent contractor; role title: Odin Writer.
Advanced machine learning, predictive modelling, data mining, and big data architecture, weighted toward evaluation and deployment over model fitting.
Analysed IT asset records and mapped ERP data workflows across a public-sector operation, identifying data-quality issues and assessing the feasibility of predictive maintenance.
EXPLAIN, composite and covering indexes.Improved relational data architecture, query performance, and scheduling logic for a multi-module application.
EXPLAIN and observed access patterns, introducing composite and covering indexes to reduce common lookup latency from 1.8 seconds to 14 milliseconds, a 99.2% reduction.A foundation in software engineering, algorithms, databases, and the systems thinking behind my later data science work.
Engineered reproducible data pipelines, forecasting models, and anomaly detection workflows across sales and inventory operations, improving analytical throughput, forecasting reliability, and reporting efficiency.
Write-ups of what I found when I checked my own numbers and designs: the evidence, what changed, and whether it is still open.
Open the log (9 entries)/Shorter pieces for Leeds Financial Insights are listed there too.