◆ SafeZone AI Learn

The curriculum

Written for people who already hold a data-science or AI degree and want their technical knowledge sharp: every lesson carries the full derivation, an interactive figure wherever one explains more than prose, and — where the playground covers it — a lab that runs the real thing on your own machine. All 94 lessons are live.

T0

Start Here

One short story before the mathematics: where this field came from, why it took over the world, and what it is doing out there right now.

T1

Mathematical Foundations

The mathematics every model in this curriculum stands on — taught as the working knowledge of a practitioner, not a lecture course.

Probability & Statistical Inference

Random variables to MLE and Bayesian reasoning — the inferential backbone of every model that follows.

1 Random variables and distributionsThe working vocabulary: expectation and variance as operators, the distribution zoo with its parameters live, and conditioning — the most important operation in ML. live 2 The law of large numbers and the CLTWhy averages concentrate, why the Gaussian is everywhere, and the 1/√n error law that prices every Monte Carlo estimate, SGD batch and test-set metric. live 3 Maximum likelihoodOne principle that generates the curriculum’s losses: least squares as Gaussian MLE, cross-entropy as Bernoulli MLE — with the likelihood surface under your cursor. live 4 Bayesian inferencePriors, posteriors and conjugacy — watch a Beta prior digest evidence — plus the exact sense in which ridge regression is a Gaussian prior. live 5 Estimators, uncertainty and the bootstrapSampling distributions, standard errors and confidence intervals — including the bootstrap, resampling its way to an error bar with no formula at all. live 6 Hypothesis testingp-values as they actually are, power, the multiple-comparisons trap — the most-used industry statistical skill, taught with its failure modes attached. live 7 A/B testing and experimentationSample-size arithmetic, sequential testing and the peeking problem, guardrail metrics — the experiment platform every product team runs, from first principles. live 8 Causal inferenceDAGs and confounding — watch adjustment recover a truth you control — difference-in-differences, instrumental variables, and the collider trap that makes 'control for everything' actively harmful. live 9 Probability: self-checkTwelve questions across the module, graded in your browser — 10+ says you own it. Every miss shows the answer and the lesson logic behind it. live
T2

Practitioner's Toolkit

Not "learn Python" — the professional workbench: reproducible environments, GPUs that actually work, and code fast enough to experiment with.

T3

Machine Learning

Supervised and unsupervised learning at full mathematical depth: from the geometry of regularization to the EM algorithm, with honest treatment of evaluation.

Supervised Learning

Linear models to gradient boosting, each with its objective, its optimizer, and its failure modes — every estimator fitted live in the page.

Unsupervised Learning

Clustering, density estimation and dimensionality reduction — including what t-SNE and UMAP plots do and do not mean.

T4

Forecasting

Time series as its own discipline: classical state-space thinking through modern global models, with the backtesting rigor most tutorials skip.

Time Series & Forecasting

Decomposition, ETS, ARIMA, Kalman filtering, and the neural forecasters that actually win competitions.

T5

Deep Learning

Backpropagation derived by hand, the architectures that matter, and the optimization tricks that make them trainable.

Deep Learning

From a two-layer network you differentiate yourself to transformers.

1 Backpropagation from scratchA two-layer network differentiated by hand, the computational-graph view, and why reverse mode costs only 2× the forward pass — then watch the same math train a net live in the page. live 2 Initialization and normalizationVariance propagation through depth, Xavier and He derived from one recursion, batch/layer norm, and residual connections — with a 50-layer signal you can watch die or survive. live 3 Convolutional networksConvolution as an inductive bet — locality plus weight sharing — receptive fields, the parameter-count miracle, and kernels you can apply to an image live. live 4 Recurrence and LSTMsBPTT as one long chain rule, the vanishing-gradient theorem made visceral, and the gated cell that fixed it — with gradient decay through time plotted for both. live 5 Attention and transformersQueries, keys and values derived from first principles, why the √d matters, multi-head, position, and the block that ended recurrence — with an attention matrix under your hands. live 6 Regularization and generalizationDropout, weight decay done right (the AdamW subtlety), augmentation, early stopping — and double descent, live: watch test error fall, spike at interpolation, then fall again. live 7 Training in practiceThe liturgy that makes networks actually train: AdamW + warmup + cosine, gradient clipping, mixed precision, overfit-one-batch-first, and the debugging order that finds the bug. live 8 Diffusion and generative visionVAE to DDPM to flow matching — with reverse diffusion running live on an exact score — classifier-free guidance derived, latent diffusion's arithmetic, and CLIP, the contrastive bridge that lets text steer images. live 9 Deep learning: self-checkTen questions across the module, graded in your browser — 8+ says you own it. Every miss shows the answer and the lesson logic behind it. live
T6

Reinforcement Learning

The track the playground was built for: search through deep RL to agentic training — every lesson runnable live on your own machine.

T7

Language Models & LLMs

Tokenizers to RLHF: how modern language models are built, tuned, evaluated and served.

Language Models

The full stack behind every AI product, opened up.

1 TokenizationBPE trained live in front of you: the merge loop, the vocabulary-size trade, and why tokenizers are behind half of LLM arithmetic failures and pricing surprises. live 2 EmbeddingsFrom one-hot to dense vectors: the word2vec objective as matrix factorization, cosine geometry, contextual embeddings — with a tiny skip-gram model training in the page. live 3 The language-modeling objectiveNext-token prediction as maximum likelihood, causal masking, perplexity as the honest metric — and an n-gram model you can train on any text to feel exactly where it breaks. live 4 Scaling lawsKaplan to Chinchilla: the power laws, the compute-optimal frontier, the ~20 tokens-per-parameter rule — explored on an interactive isoFLOP curve. live 5 LoRA and parameter-efficient fine-tuningThe low-rank update hypothesis, LoRA's exact math (rank, α, which matrices), QLoRA — with the rank/quality trade measured live on a real low-rank update. live 6 Alignment: RLHF and DPOBradley–Terry reward modeling, the KL-anchored RLHF objective, DPO's derivation as its closed form, and reward hacking — the training loop behind every assistant you talk to. live 7 Inference and servingKV-cache memory arithmetic, temperature/top-k/top-p derived and played with live, speculative decoding, and why serving is a memory-bandwidth problem, not a FLOPs problem. live 8 RAG and evaluationRetrieval-augmented generation's anatomy and failure modes, plus the hard problem: evaluating systems whose outputs are prose — benchmarks, win-rates, judges, and contamination. live 9 Evaluation engineeringEval-set design, judge calibration and guardrails as an engineering discipline — the fastest-growing skill in the LLM job market, taught at working depth. live 10 Language models: self-checkTen questions across the module, graded in your browser — 8+ says you own it. Every miss shows the answer and the lesson logic behind it. live
T8

DevOps & Cloud

Ship what you build: containers, CI/CD and infrastructure as code, then the cloud platforms underneath — AWS in depth, with the Azure and GCP translations.

Shipping Software

The delivery pipeline this very platform uses, generalized.

1 Containers and images that behaveWhat a container actually is, images as layer stacks, the build-cache economics you can watch invalidate live — and the multi-stage pattern behind every production Dockerfile. live 2 CI/CD pipelinesThe pipeline as a gauntlet of gates: build, test, scan, deploy — run it, inject failures, and watch what a security gate actually stops. Includes the anatomy of a real GitHub Actions workflow. live 3 Terraform and infrastructure as codeInfrastructure as a reconciliation loop: desired state in code, actual state in the cloud, and plan/apply/drift played live — plus the state-file discipline that keeps teams from destroying each other's resources. live 4 Secrets and configurationThe hierarchy from .env to OIDC-federated short-lived credentials: where secrets live at each maturity level, the leak vectors that actually happen, and config separation across environments. live 5 Multi-repo architectureHow separate repositories compose into one system: the contract surfaces — registries, APIs, schemas, IAM — where they meet, and a change-propagation map you can probe scenario by scenario. live 6 Model monitoring and driftThe pipeline shipped the model — now operate it: covariate vs concept drift on a live 120-day simulation, PSI and the label-delay problem, retraining triggers, shadow and canary deployment. live 7 Shipping software: self-checkTen questions across the module, graded in your browser — 8+ says you own it. Every miss shows the answer and the lesson logic behind it. live

Theory here, compute on your machine.

Reading is free and instant, no account. The labs run through a small open worker you start locally — your GPU, your models, your API keys, none of it leaves your machine.

New lessons and videos, about twice a month. No spam, unsubscribe in one click.