Combining Machine Learning Models in Python

Posted by Jack McKew on Thu 21 September 2023 in Python • Tagged with python, visualisation, machine learning, ai • 3 min read

Now that we've built & trained logistic regression and decision tree models to classify the iris dataset in these previous posts:

We found that they were both really good in their own regard (potentially overfitting), but what if we had two models …


Continue reading

Decision Tree Classifiers in Python

Posted by Jack McKew on Tue 15 August 2023 in Python • Tagged with python, visualisation, machine learning, ai • 1857 min read

What are decision trees? It's a tool to assist with making decisions, in a tree like structure, similar to a flow chart; where each branch of the tree is a decision, usually made with some boundaries that decide which branch to follow. A basic decision tree could be of a …


Continue reading

Logistic Regression with PyTorch

Posted by Jack McKew on Sun 06 August 2023 in Python • Tagged with python, visualisation, machine learning, ai • 17 min read

In this post we'll go through a few things typical for any project using machine learning:

  1. Data exploration & analysis
  2. Build a model
  3. Train the model
  4. Evaluate the model

While this is a very high level overview of what we're about to do. This process is almost the same in any …


Continue reading

Optimization Gotchas in PostGIS for Geospatial Queries

Posted by Jack McKew on Tue 11 July 2023 in Databases • Tagged with databases • 4 min read

This post will go through how techniques that are intended to speed up geospatial queries for PostGIS, sometimes have the opposite effect. The origin of this post came from building a system to evaluate whether a point was on the water or not, so we'll use that as our datasource …


Continue reading

Australia Post Codes Connected

Posted by Jack McKew on Mon 29 May 2023 in Python • Tagged with python, visualisation • 4 min read

Have you ever wondered what the sequence to postcodes is? Ever wondered who your postcode neighbour was? I definitely have, so I've built a visualisation to do exactly that, and made it interactive for everybody to play around with!

Before we get into any of the processing, let's take a …


Continue reading

Lessons Learnt After 100 Blog Posts

Posted by Jack McKew on Wed 10 May 2023 in Principles • Tagged with habits, principles • 3 min read

This post is dedicated to my late partner Jackie, who I absolutely couldn't of done any part of this blog without. Life will never be the same without you, but I'm trying to make the most of every day for the both of us.

If you're reading this, this is …


Continue reading

Designing for Change not Requirements

Posted by Jack McKew on Fri 15 January 2021 in Software • Tagged with software, principles • 2 min read

Change is inevitable in everything, so why not consider it in the design phase of a project. By designing for inevitable change this safeguards projects from a myriad of future hurdles. This post was inspired by the Weekly Dev Tips episode: https://www.weeklydevtips.com/episodes/requirements-and-change-with-guest-juval-lowy.

Typically projects usually …


Continue reading

Typography With Matplotlib

Posted by Jack McKew on Fri 08 January 2021 in Python • Tagged with python, visualisation • 3 min read

Typography is 'the style and appearance of printed matter', so in this post we're going to make some typography art with Matplotlib, we're going to make use of some text and colour the words which are colours themmselves (eg, the colour red will be coloured red). This is an interesting …


Continue reading

Define Functions Iteratively With Python

Posted by Jack McKew on Fri 01 January 2021 in Python • Tagged with python, software-development • 4 min read

An interesting problem came up recently, there was a piece of code absolutely full of the same function calls over and over again, meaning if anything ever need to change, that would have to be changed in over 500 places, not ideal. Thoughts go back to single responsbility, and don't …


Continue reading

Getting Started with P5.js

Posted by Jack McKew on Fri 25 December 2020 in Javascript • Tagged with javascript, data-viz • 2 min read

In this post we're going to make use of the library P5.js which enables us to create interactive visualisation in the browser. We're going to create an interactive pond where users will be able to click on the screen to create a new drop in the pond and watch …


Continue reading