Understanding Base58 encoding in Python

Converting binary to string can be useful when you need to represent a number in a recognizable, short package. For this task, Base64 is often used. Base64 contains characters that can be confused with each other. This can lead to transcription mistakes. It is also harder to copy & paste due to special characters. Base58…

Read More


How to Generate Text in Python

Text is my personal favorite medium for machine learning. Here is why: In computing, a picture is worth a (few hundred) thousand words. As a result, modeling text is more space and compute efficient than visual models. Text arrived first to the internet. This lead time has resulted in better algorithms, and bottomless data. Interpretability…

Read More




Exploring Latent Word Vectors using Path Finding

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…

Read More


Understanding Evolutionary Algorithms in Python

In this post, we will be diving into the world of context-free grammars to use in evolutionary algorithms. What is context-free grammar? Context-free grammar, also known as CFG, is a specific type of grammar used in computer science and linguistics. It is a set of production rules that define the structure of a language. CFG…

Read More