xbe.at Work with me

Python · machine learning · AI

Notes on Python, machine learning and AI, built around code you can run.

2,282 short pieces: how a technique works, where it breaks, what to try next. Free, public domain, no sign-up.

Tryk-meanstransformersgradient descentpandasRAGregularization

  • 2,282notes
  • 14topics
  • 345 hof reading
  • CC0public domain
Py520ML501DL296…215LLM166Σ138NLPDSVizCVDEAPIOpsRLONE DOT = FIVE NOTES
Plate I. The notebook: one dot for five notes, a column for each topic, from the largest. In orange, the notes most read this month. Pick a topic →

Most read this month

Where readers start

A random note

How a note works

One idea, the code that shows it, where it breaks.

  1. 1The idea in two lines. What the technique does and when you reach for it.
  2. 2Code you can run. Short, complete, with the libraries everyone has; copy it with one click.
  3. 3The picture and the limit. What the output looks like, and where the method stops working.

Read this note A random one

elbow_method.py1
# the elbow: add clusters until the gain stops
from sklearn.cluster import KMeans

inertia = []
for k in range(1, 11):
    km = KMeans(n_clusters=k, n_init="auto")
    inertia.append(km.fit(X).inertia_)

plot(range(1, 11), inertia, marker="o")2
3
Plate II. A note, taken apart: the idea, the code, the picture. Here k = 3 is where the curve bends.

14 topics

Pick a topic

Search instead
Python520 notes

The language itself: core features, data structures, OOP, testing, performance and the standard library.

Python for ML and AIScientific and math computingCore language+6

Machine learning501 notes

Classical algorithms, model evaluation, feature work and the maths behind them.

Advanced ML topicsClassification and clusteringModel evaluation and validation+6

Deep learning296 notes

Neural networks from the ground up: layers, optimisers, CNNs, RNNs, GANs and training tricks.

Backpropagation and optimizationActivation functions and lossNeural network fundamentals+6

LLMs and generative AI166 notes

Large language models, retrieval, agents, fine-tuning and prompting.

LLM architecture and theoryRAG and retrievalAgents and LangChain+3

NLP and transformers118 notes

Text processing, embeddings, attention and transformer models.

Transformer architectureNLP coreBERT and language models+2

Data science111 notes

pandas, NumPy, exploratory analysis, cleaning and feature engineering.

Data visualisation69 notes

Matplotlib, Seaborn and the craft of a readable chart.

Computer vision48 notes

Images in, structure out: convolution, detection, segmentation, transfer learning.

Data engineering40 notes

SQL, Spark, Kafka, pipelines and the plumbing under every model.

Web and APIs34 notes

FastAPI, Flask, Django, REST and authentication.

MLOps and deployment17 notes

Docker, CI/CD, serving models and tracking experiments.

Reinforcement learning9 notes

Agents that learn by trying: Q-learning, policy gradients.

Miscellany215 notes

Everything that did not fit elsewhere: tools, curiosities, side roads.

Statistics and analysisAI applications and systemsData engineering and tools+5

Cover of Mastering Machine Learning

The book

Mastering Machine Learning: From Core Concepts to Advanced Applications

The same ground as these notes, in order and in one place: from the core ideas to the models in use today. Kindle edition.

Get it on Amazon Or read the notes, free

The lab

Games and simulations, built to see how they work

All of the lab

Community

New notes, questions, corrections

The sources are on GitHub: corrections are welcome as issues or pull requests.

GitHubYouTubeTelegramDiscordRedditXInstagramTikTokFacebook