Working with Python Dataclasses and Dataclass Wizard

If you’re a Python coder, you’re probably familiar with Zen. Three of its 19 guideline principles state that “explicit is better than implicit,” “readability counts,” and “simple is better than…

Lessons From My ML Journey: Data Splitting and Data Leakage

Common mistakes to avoid when you transition from statistical modelling to Machine Learning

7 Books to Read on Artificial Intelligence

In this post I will share about some of the most interesting books about Artificial Intelligence I have been reading lately, together with my own thoughts: There’s been a lot of debate about what our…

Position Embeddings for Vision Transformers, Explained

Since their introduction in 2017 with Attention is All You Need¹, transformers have established themselves as the state of the art for natural language processing (NLP). In 2021, An Image is Worth…

Vision Transformers, Explained

Since their introduction in 2017 with Attention is All You Need¹, transformers have established themselves as the state of the art for natural language processing (NLP). In 2021, An Image is Worth…

Altair and the Powerful Vega-Lite ‘Grammar of Graphics’

It was way back in 1999 that the late Leland Wilkinson wrote his seminal book, The Grammar of Graphics[1], in which he explained the notion that charts could be built from building blocks that were…

Advanced Selection from Tensors in Pytorch

In some situations, you’ll need to do some advanced indexing / selection with Pytorch, e.g. answer the question: “how can I select elements from Tensor A following the indices specified in Tensor B?”…

Through Knowledge Sharing to Singularity, Accelerated By LLMs

I’ll briefly outline some knowledge-sharing history milestones, the effects open-source had on knowledge accumulation, and the way it brought us to LLMs. Then we’ll stop at the current point to…

Predict Health Outcomes of Horses — A Classification Project in Machine Learning

Before getting into Machine Learning Project Series — Part II, Click Here to see Machine Learning Project Series — Part I. Project Objective or Goal: Given various medical indicators of horses, we…

Hands-On LangChain for LLM Applications Development: Prompt Templates

By prompting an LLM or large language model, it is possible to develop complex AI applications much faster than ever before. However, an application can require prompting an LLM multiple times and…