Posts

Writing about machine learning, NLP, programming, and the occasional book or life thought.

Method of least squares
4 min read

When there are more equations than unknowns, there is usually no exact solution. The method of least squares - introduced by Adrien-Marie Legendre in 1805 while studying the orbits of comets - tells us how to find the best solution by minimizing the total squared error.

GPU Monitoring app with Django
2 min read

A tiny GPU monitoring web app built with Django and gpustat that shows real-time GPU usage, memory, and active processes per user - handy in shared research labs and clusters.

Importance of statistics in science & hypothesis test
5 min read

Statistics is the backbone of scientific research - from designing robust studies and sampling to hypothesis testing with p-values and significance levels. This article walks through the key elements of study design and the process of hypothesis testing.

A blog post about Life
2 min read

The entire blog post below was generated by GPT-3. I was learning about OpenAI transformer-based language models and was astonished by how powerful they are, so I decided to see if one could write a post for me.

My favorite 2021 books
4 min read

I read a lot in 2021. Here are five books I really loved: Educated by Tara Westover, The Body by Bill Bryson, Think Again by Adam Grant, Sapiens by Yuval Noah Harari, and Deep Work by Cal Newport.

Book: "The 5 AM Club"
3 min read

My takeaways from The 5 AM Club by Robin Sharma - an inspiring book that teaches the 20/20/20 rule for transforming your mornings, and my attempt to actually follow it.

Maximum Subsequence Sum of an Array
5 min read

Solving the maximum (contiguous) subsequence sum problem in Python from a slow brute-force O(n^3) approach down to an elegant linear-time algorithm that also returns the subsequence itself.