Tutorials
Free machine learning tutorials
Perceptron Lab is a free website for learning machine learning from core principles: classical statistical methods, neural networks, natural language processing, computer vision, agentic design, evaluation, and other key concepts.
Why I built it
I support learning in machine learning and AI through this site, a YouTube channel, and a Discord community of 75,000 members. The site exists because I believe the fundamentals should be taught from core principles and be freely available to anyone willing to work through them.
How each concept is taught
Every concept on the site is taught the same way.
The problem that forced it
Each concept starts with the problem that made it necessary, not a timeline of who published what. A method is easier to understand when you know what it was built to solve.
In plain terms, and the mechanism
Two explanations side by side: one for anyone, and one for the technical reader who wants the underlying mechanism.
Something you can poke
A small interactive playground that both explanations narrate. It is computed live by my oop_ml library through its API, so what you see is the real algorithm, not a re-implementation in JavaScript.
How it is built
Three components in three repositories, each deploying on its own cadence: the library, the API that exposes it over HTTP, and the site, which calls the API and never imports the library.
oop_mlThe library
oop_ml, my object-oriented machine learning library, written from scratch on numpy. Everything the site teaches is implemented here first.
machine_learning_tutorial_apiThe API
Exposes the library over HTTP, so the site can request a fit and get back the real intermediate values.
machine_learning_tutorialThe site
Next.js, React, TypeScript, and Tailwind. The playgrounds are hand-written SVG driven by pointer events, fetching fits from the API.
Go there
The site is at perceptronlab.dev .