ML From ScratchGitHub ↗
Java · Next.js · every operation built by hand

Learning machine learning from the math up.

No black-box libraries. Vectors, matrices, probability and gradient descent — implemented from scratch in Java, visualized live here.

The lab, running live

A hand-rolled optimizer on the left, the real backend round-trip on the right — both served from a single Docker image.

Gradient descent, live

x ← x − lr·f′(x) on f(x) = 0.18·x²

iter 0
loss 5.2488

Live backend

Static frontend → Spring Boot API → Postgres, all in one image. Each check does a real DB round-trip.

Pinging /api/db-test…

8-week roadmap

From the dot product to logistic regression — one concept at a time, each made to pass its own hand-written tests.

week 01Linear Algebra

Vectors

add · scale · dot · norm — vectors tip-to-tail.

week 02Linear Algebra

Matrices

multiply, transpose, inverse as linear maps.

week 03Linear Algebra

Eigen & SVD

eigenvectors and the decompositions behind them.

week 04Probability

Probability

sample spaces, conditionals, Bayes' rule.

week 05Probability

Distributions

normal, binomial, sampling by hand.

week 06Statistics

Statistics & MLE

estimators and maximum likelihood.

week 07Machine Learning

Gradient Descent

optimize a loss → linear regression.

week 08Machine Learning

Logistic Regression

classification + the first real library.