Skip to content

Machine Learning Lab

Seventeen interactive pages where machine learning can be touched by hand: turn the knobs, watch training converge and see the formulas at work. Nothing to install — everything is computed right in the browser, and the pages even work offline.

About the language

Every page carries an RU / EN switch, and the language also comes from the address: add #lang=en to any link. The choice is kept in the URL hash on purpose — the site server drops query parameters when it redirects .html links, so ?lang=en would be lost.

All seventeen pages are translated — the English version of the lab is complete. Both languages share the same code, so the numbers never differ; only the words change. The visualizations themselves — diagrams, matrices, formulas, numbers — are language-independent in any case.

🧩 Inside neural networks

🎯 How learning works

🎯 Supervised learning

📊 Data and decisions

✨ Just beautiful

How to use it

  • Click any block in a diagram — a breakdown opens next to it or in the side panel: what it is, the formula, why it exists, tensor shapes and the usual pitfalls.
  • The “+” badge in the corner of a block expands its internal diagram in place: for attention you can follow the whole Q·Kᵀ → ÷√d_k → softmax → ×V chain.
  • Live examples appear in the explanation panel: a temperature slider for softmax, a causal-mask checkbox, positional-encoding plots, a counter of values zeroed by ReLU.
  • The ← → keys page through the blocks, 1 / 2 / 3 switch the architecture (encoder–decoder → GPT → BERT), and A− / A+ change the diagram size.
  • In the KNN, linear-fit and polyfit pages you can also change the language on the spot with the RU / EN switch — the same thing that #lang=en does to a link.

What matters

Everything in the lab is real mathematics, not a hand-drawn animation: convolutions are computed in a shader, k-means runs honest Lloyd iterations, Q-learning updates its table by the Bellman equation, and PSO uses the classical Clerc constants. Wherever something is an illustration rather than a trained model, the page says so explicitly.