Skip to content
AI-grafen

The laboratory

Write code, run tests, measure. Levels A–D run in your browser; from level E in an isolated container. Sign in to run.

Labs (20)

Lab: lists, loops and dictionaries

C

in the browser · about 40 min · teaches Python — lists, loops and dictionaries

Lab: mean, median and standard deviation by hand

C

in the browser · about 40 min · teaches Statistics — mean, median and spread

Lab: simulate dice and compare with the theory

C

in the browser · about 40 min · teaches Probability — the basics

Lab: the best line with least squares

C

in the browser · about 40 min · teaches Linear regression: fitting a straight line to data

Lab: your first Python functions

C

in the browser · about 30 min · teaches Python — the basics

Lab: a neural network in pure NumPy — forward, backprop, gradient check

D

a sandbox · about 75 min · teaches Backpropagation

Lab: dot product, norm and cosine similarity

D

in the browser · about 40 min · teaches Vectors

Lab: gradient descent from scratch

D

in the browser · about 50 min · teaches Gradient descent

Lab: k-means from scratch

D

a sandbox · about 45 min · teaches Clustering: k-means and hierarchical

Lab: k-nearest neighbours from scratch

D

a sandbox · about 45 min · teaches k-nearest neighbours (kNN)

Lab: matrix multiplication and one layer of a neural network

D

in the browser · about 45 min · teaches Matrices and matrix multiplication

Lab: scaled dot-product attention with a causal mask

D

a sandbox · about 60 min · teaches Attention

Lab: semantic search with embeddings

D

a sandbox · about 45 min · teaches Embeddings — words as vectors

Lab: tensors, autograd and your first training loop

D

a sandbox · about 50 min · teaches PyTorch — tensors and autograd

Lab: train a digit classifier in PyTorch

D

a sandbox · about 60 min · teaches Train a neural network in PyTorch

Lab: an agent loop with tools, a budget and a trace

E

a sandbox · about 60 min · teaches The ReAct loop: think, act, observe

Lab: BM25 and a minimal RAG pipeline

E

a sandbox · about 60 min · teaches BM25 and keyword search

Lab: build an eval harness

E

a sandbox · about 60 min · teaches Build an eval harness

Lab: byte-pair encoding from scratch

E

a sandbox · about 60 min · teaches Byte-pair encoding

Lab: LoRA on a small network — train only the adapters

F

a sandbox · about 75 min · teaches LoRA — Low-Rank Adaptation

Projects (5)

Frontier Lab (4)

Level G: reproduce a paper, run ablations, build a benchmark and find circuits in a model. Discuss at research level with the tutor (the «Research» depth on every node), submit to public benchmarks and research challenges, and get peer review on your project. The path there: Frontier Lab — an independent research project.