Galaxy Morphology Classification on Galaxy10 DECaLS
A convolutional network validated on synthetic data, then trained on 11,506 real Galaxy10 DECaLS images, reaching 92.2% validation accuracy on Elliptical vs. Spiral classification.
Using machine learning to solve physics' complex, recurring problems, faster.
I work on machine learning methods for cosmological inference, with a focus on photometric redshift estimation, calibrated uncertainty under distribution shift, and fast emulators for expensive theory codes. My background is in physics, with several years of software engineering, including professional roles in industry, that shape how I build and test scientific code.
emutrust: fast AI emulators for slow physics codes, with error bars you can trust.
pip install emutrust
Cosmologists infer the properties of the universe by comparing data with predictions from slow physics codes, such as the Boltzmann solver CAMB, hundreds of thousands of times. A neural-network emulator can replace the slow code and make this thousands of times faster, but it is never exactly right, and treating it as exact makes the error bars too small. emutrust is an open-source Python library that builds emulators, measures how wrong they are on runs they have never seen, and carries that error into the inference, so the results stay honest.
How often the 68% interval contained the true cosmological parameters at survey-level precision (0.2% noise per data point): with the emulator treated as exact, and with emutrust. Honest error bars give about 68%.
0.3–0.5 ms per likelihood evaluation, including the emulator's error, against 0.58 s per CAMB call. A full MCMC run takes about a minute instead of about 31 hours.
On 300 CAMB matter power spectra the emulator never saw during training, across five ΛCDM parameters.
from emutrust import Emulator, GaussianLikelihood, run_model, validate
training = run_model(my_model, space.sample(300), space)
emu = Emulator.fit(training)
report = validate(emu, validation) # how wrong is the emulator?
like = GaussianLikelihood(emu, data, noise, emulator_error=report)
Four projects spanning classification, surrogate modelling, simulation, and calibrated probabilistic inference. The common thread is building models whose failure modes are understood, not just their headline metrics. Code and further detail for each are being published to GitHub on an ongoing basis.
A convolutional network validated on synthetic data, then trained on 11,506 real Galaxy10 DECaLS images, reaching 92.2% validation accuracy on Elliptical vs. Spiral classification.
Emulating matter power spectra from the Boltzmann solver CAMB, returning results in ~0.17 ms against ~3.6 s for a full call, within 0.035% mean fractional error.
An interactive Monte Carlo simulation of the 2D Ising model, recovering the critical temperature via Metropolis sampling.
A LightGBM redshift estimator with per-object p(z) uncertainty, evaluated across four LSST/Roman survey scenarios, meeting the sigma_RMSE accuracy requirement at 10-year depth with outlier rates under 3.1% throughout.
Solving algorithmic problems correctly under a strict time limit is a reasonably direct proxy for the implementation speed and fluency that computational research also demands.
A daily programming-puzzle contest run every December: 25 puzzles, one per day, with a global leaderboard scored by solving speed. Points are awarded each day to only the fastest solvers worldwide, so a season-long rank of 47th reflects consistency across all 25 days, not a single good one.
Meta's annual algorithmic programming championship: multiple elimination rounds of increasingly difficult problems, open to competitors worldwide, in the same tradition as Google Code Jam and the ICPC.
A three-hour, team-based algorithmic contest hosted by UC Berkeley. Competed as a three-person team ("PyTigris"); placing 139th worldwide earned a Bronze finish.
Selected as a volunteer Section Leader for a Stanford-run introductory Python course taught through the Karel-the-Robot exercises. Mentored a small group of students week to week, reviewing their code, debugging their exercises with them, and explaining core programming concepts directly rather than just grading the output.
View Proof ↗Designed and delivered a coding bootcamp to 100+ underprivileged students, teaching programming from first principles (HTML, CSS, JavaScript) through to applied, portfolio-ready projects. Guided students in turning static designs into fully functional, customized applications using modern development practices, and introduced RESTful APIs, modular design, and automation techniques for building scalable solutions.
View Proof ↗