← Part of Lysen · lysen.org

The interactive machine-learning reference

Every algorithm. The same six questions.

Most explainers show you one beautiful animation and then stop. Here, every algorithm answers the same six questions, and you answer them back by dragging, splitting and breaking things yourself. Each chapter runs two tracks: Explanation for the idea, the maths and the interactives, and Code for the from-scratch implementation, walked line by line.

regulars · many visits, modest spend big spenders · rare visits, high spend occasional · low on both
iteration 0 · J = …
One undifferentiated crowd goes in. Three named types come out. That is running live, and everything on this site is a version of the same move, which is exactly what lysis means: loosening a thing into its parts.

The same six questions, every time

Learning ten algorithms is hard. Learning one shape ten times over is not. Every chapter on Lysen answers these six in this order, so by the third chapter you already know where to look.

01

Intuition

Feel the idea before the formula.

02

The algorithm

Every step of the loop, with numbers.

03

Evaluation

How you know it worked.

04

Failure modes

Break it, then fix it.

05

Prompting AI

Make an assistant build it well.

06

Beyond AI

What no prompt can decide.

Not sure where to start?

Answer a couple of questions and the site will point at the right chapter. No sign-up, nothing stored.

The map

Every algorithm sits in two boxes: how it learns, and what job you point it at. A filled chip is what its chapter teaches; an outlined chip is what else it can do. Where several algorithms are scored the same way, that scoring gets its own shared page rather than being repeated in each chapter.

Supervised learning

learns from examples where somebody already wrote down the answer

Regression · predict a number

Classification · predict a label

Unsupervised learning

no answers are given, so the structure has to be found in the data itself

Clustering · find the groups