Logo
About Blog Projects Talks Podcasts Tags Other work
About Blog Projects Talks Podcasts Tags Other work

Tag: Python

← Browse all tags

28 posts with this tag

Post image

Linear regression from scratch in Python

Almost six years ago (which means this blog is … old), I wrote what has become one of my favourite blog posts), explaining the linear algebra approach to linear regression (specifically to OLS, or ordinary least square regression). I was …

Posted on March 2, 2026 • 15 minutes read Read on
Post image

Can LLMs use language at a human-like level?

Over the past two years, since the initial release of ChatGPT in November 2022, we've been in a hype cycle around large language models, or LLMs. Due to the very human "feeling" of LLM outputs, a lot of people have been convinced that these models …

Posted on June 29, 2024 • 16 minutes read Read on
Post image

Optimising the Minkowski distance, part 3: removing redundant calculations

In our previous blog post we discussed how to implement the Minkowski distance formula in a couple of functions which relied heavily on for loops. On our full data, this lead to a processing time of over an hour. With some simple tricks in NumPy …

Posted on July 6, 2022 • 8 minutes read Read on
Post image

Optimising the Minkowski distance, part 2: broadcasting

In the last blog post, we managed to shave a bit of time off our calculation of the Minkowski distance by using vector subtraction. Instead of calculating the difference between each pair of vectors elementwise using a loop, we were able to take …

Posted on June 29, 2022 • 9 minutes read Read on
Post image

Optimising the Minkowski distance, part 1: vector subtraction

In the last blog post, we discussed how to calculate the Manhattan and Euclidean distances from first principles. However, in that post, we did a very manual implementation for a single pair of vectors, which would not generalise well to more than …

Posted on June 14, 2022 • 8 minutes read Read on
Page 1 of 6 Next
Copyright © 2015 - 2026 Jodie Burchell   |   BY-NC 4.0