In this post, we use international trade data to model the impact of a hypothetical invasion of Taiwan by China….
In this post, we use international trade data to model the impact of a hypothetical invasion of Taiwan by China….
Combined linear programming and value investing to optimize a $10,000 portfolio….
In this post, I will show how to use A/B testing to rank thousands of qualitative items, made easier through automation by large language models (LLMs). The ELO algorithm The ELO algorithm, originally designed for ranking chess players, is a well known method for determining rankings through a series of head-to-head matches. The algorithm assigns…
In this post, we will cover the basics of LangChain and guide you through its core components….
In this post, I will create a web application that stores locations and plots them on a map. I will be using Django as the web framework, PostgreSQL to store the data, and LeafletJS to plot the points. Creating the base application This app is based on a starter project using the steps in this…
Simple proof of work blockchain in Python in less than 100 lines of code…
In this post, I cover how implement a PID controller using a DC power supply and an oscilloscope to generate arbitrary waveforms….
This post shows how to program a Rigol DS1000Z series oscilloscope….
Matplotlib has become the standard plotting library in Python. This is thanks to its simple API and NumPy/SciPy integration, making it easy to add interactive plots to any code. In this post, I will walk through how to make animated 3D plots in Matplotlib, and how to export them as high quality GIFs. RGB Color…
In my previous post, I created a product recommendation system using word embeddings. Today, we’ll take it a step further and explore how we can use these vectors to find the shortest path between pairs of words. Dijkstra’s algorithm Dijkstra’s algorithm is a method for finding the shortest path between any two vertices of a…