Blog

Deep dives, tutorials, and thoughts on AI.

☽
30-Day AI Ramadan Series

19 of 30 posts published · One AI concept every day, all of Ramadan 2026.

Progress21 / 31
Day 1 🌙 30-Day AI Ramadan Series

What is Machine Learning?

Machine learning explained from zero — what it is, how it differs from normal programming, the three types, and why it now powers everything.

Read more →
Day 2 🌙 30-Day AI Ramadan Series

The ML Pipeline

The complete journey from raw data to a deployed model — data collection, cleaning, feature engineering, training, evaluation, and deployment.

Read more →
Day 3 🌙 30-Day AI Ramadan Series

How Models Actually Learn

Loss functions, gradient descent, and learning rate — the universal engine behind every ML model from linear regression to GPT-4.

Read more →
Day 4 🌙 30-Day AI Ramadan Series

Linear Regression

Linear regression from scratch — the simplest and most foundational ML model. OLS, MSE, R², and why it still powers production systems.

Read more →
Day 5 🌙 30-Day AI Ramadan Series

Logistic Regression

How a linear model learns to output probabilities using the sigmoid function, log-loss, and what the decision boundary really means.

Read more →
Day 6 🌙 30-Day AI Ramadan Series

K-Nearest Neighbors

Distance metrics, the curse of dimensionality, choosing K, and its surprising link to vector search in modern LLMs.

Read more →
Day 7 🌙 30-Day AI Ramadan Series

Naive Bayes

Bayes' theorem from scratch, the independence assumption, why it works despite being wrong, and text classification in production.

Read more →
Day 8 🌙 30-Day AI Ramadan Series

Decision Trees

Gini impurity vs entropy, overfitting, pruning, feature importance — the foundation of every modern ensemble method.

Read more →
Day 9 🌙 30-Day AI Ramadan Series

Bias, Variance & the Tradeoff

Bias and variance explained through darts, learning curves, and every model unified into one framework.

Read more →
Day 10 🌙 30-Day AI Ramadan Series

Regularization

L1, L2, Elastic Net, and Dropout — the tools that prevent overfitting in every model with intuition, math, and code.

Read more →
Day 11 🌙 30-Day AI Ramadan Series

Bagging & Random Forests

How asking 500 imperfect models instead of one perfect model produces the most reliable predictions in classical ML — bootstrap sampling, feature randomness, and OOB validation.

Read more →
Day 12 🌙 30-Day AI Ramadan Series

Boosting: AdaBoost & Gradient Boosting

Bagging makes models vote in parallel. Boosting makes them learn in sequence — each new model fixing exactly where the last one failed.

Read more →
Day 13 🌙 30-Day AI Ramadan Series

XGBoost & LightGBM

The engineering masterpieces that made gradient boosting 10–100× faster — second-order gradients, histogram splits, and early stopping in production.

Read more →
Day 14 🌙 30-Day AI Ramadan Series

Feature Engineering & Selection

The craft that separates good ML engineers from great ones — creating, transforming, and selecting features that make every model smarter.

Read more →
Day 15 🌙 30-Day AI Ramadan Series

Neural Networks: From Logistic Regression to Deep Learning

A logistic regression unit, stacked and made non-linear — the bridge from classical ML to deep learning. Neurons, backprop, ReLU, and vanishing gradients from scratch.

Read more →
Day 16 🌙 30-Day AI Ramadan Series

CNNs from Scratch

How machines learned to see — convolutions, filters, pooling, receptive fields, and residual connections explained from first principles.

Read more →
Day 17 🌙 30-Day AI Ramadan Series

Transfer Learning & Fine-Tuning

How a model pre-trained on everyday photos achieved 95% accuracy on brain tumour classification with just hundreds of examples.

Read more →
Day 18 🌙 30-Day AI Ramadan Series

Object Detection, YOLO & Segmentation

Classification tells you what. Detection tells you where. Segmentation tells you which exact pixels. YOLO, IoU, NMS, and U-Net explained.

Read more →
Day 19 🌙 30-Day AI Ramadan Series

NLP Fundamentals

Teaching machines to read — tokenisation, bag-of-words, TF-IDF, and the foundational techniques that turn language into computable numbers.

Read more →
Day 20 🌙 30-Day AI Ramadan Series

Recurrent Neural Networks

The first serious attempt at sequence modelling — how RNNs process text word by word, why gradients vanish over long sequences, and the exact mathematical proof that led to the LSTM.

Read more →
Day 21 🌙 30-Day AI Ramadan Series

GRU & LSTM: Teaching Networks to Remember

Forget gates, cell states, and the gradient highway — how LSTM and GRU solved the vanishing gradient problem and powered a decade of NLP breakthroughs.

Read more →
Day 22 🌙 30-Day AI Ramadan Series

Tokenization: How Text Becomes Numbers

BPE, WordPiece, SentencePiece — how GPT, BERT, and LLaMA split text into tokens, why the choice matters more than you'd think, and how to build a tokenizer from scratch.

Read more →
Day 23 🌙 30-Day AI Ramadan Series

Word Embeddings: Word2Vec, GloVe & Sentence Transformers

king − man + woman ≈ queen. Word2Vec, GloVe, and sentence transformers — the geometry of meaning that powers semantic search and RAG retrieval.

Read more →
Day 24 🌙 30-Day AI Ramadan Series

Attention & the Transformer Architecture

The architecture that powers GPT-4, Claude, and Gemini — self-attention, Q/K/V, multi-head attention, and the full transformer block built from scratch.

Read more →
Day 25 🌙 30-Day AI Ramadan Series

Positional Encodings: Sinusoidal, RoPE & ALiBi

How transformers understand word order without recurrence — sinusoidal encodings, rotary position embeddings, and the techniques powering long-context models.

Read more →
Day 26 🌙 30-Day AI Ramadan Series

BERT vs GPT: Encoders, Decoders & What They're For

Why BERT reads the whole sentence but GPT only looks left — masked language modelling vs causal language modelling, and when to use each architecture.

Read more →
Day 27 🌙 30-Day AI Ramadan Series

Tokenization Deep Dive: BPE, WordPiece & SentencePiece

A deeper look at how each major tokenizer algorithm works under the hood — merge rules, vocabulary construction, and why the same word tokenizes differently across models.

Read more →
Day 28 🌙 30-Day AI Ramadan Series

Fine-Tuning LLMs: Full, LoRA & QLoRA

Fine-tuning a 7B model on a single GPU — full fine-tuning, LoRA's low-rank decomposition, 4-bit QLoRA quantisation, and when each approach is the right call.

Read more →
Day 29 🌙 30-Day AI Ramadan Series

RAG: Retrieval-Augmented Generation Pipeline

Giving LLMs long-term memory — the full RAG pipeline from document ingestion and chunking to embedding, vector search, and grounded generation.

Read more →
Day 30 🌙 30-Day AI Ramadan Series

Prompt Engineering: Zero-Shot to Injection

Zero-shot, few-shot, chain-of-thought, system prompts, and prompt injection attacks — the complete picture of how to talk to language models and how they can be misled.

Read more →
☰ Browse All Categories →