Tools

Small interactive demos that illustrate ideas from my teaching and research. Everything runs in your browser — nothing is sent anywhere.

Word2Vec Simulator

See how words become vectors — and why 'king − man + woman ≈ queen'.

An interactive playground that builds a small word embedding space in your browser. Explore neighborhoods, run vector arithmetic, and watch meaning emerge from geometry.

Open the demo →

Transformer Residual Stream

A minimal 'Attention Is All You Need' encoder you can poke at — watch the stream change layer by layer.

An interactive encoder block from the original Transformer paper. Each layer writes twice to the residual stream — once from self-attention, once from the feed-forward network. Toggle residual connections or layer norm to see what breaks.

Open the demo →

LIME Explainer

Why did the model say that? LIME builds a local, human-readable explanation.

An interactive LIME simulator. Pick a point on a 2D decision surface, watch the perturbation cloud form, and see the weighted local linear model that explains the black box's prediction at that point.

Open the demo →

SHAP Explainer

Fair feature attribution via Shapley values — local explanations and global importance in one tool.

An interactive SHAP simulator with two views. Local: pick an instance, see the exact Shapley values, the force plot, the waterfall, and every coalition the formula averages over. Global: mean |SHAP| importance and a beeswarm plot across hundreds of instances.

Open the demo →

Cosine Similarity Explorer

Drag two vectors and watch similarity change — direction matters, magnitude doesn't.

An interactive 2D playground for building intuition about cosine similarity. Drag vector endpoints to see how angle determines similarity while length is ignored — the key insight behind how word embeddings measure meaning.

Open the demo →

MapReduce Word Count

Step through Split → Map → Shuffle → Reduce and see how distributed word counting works.

An interactive walkthrough of the MapReduce paradigm using the classic word-count example. Edit the input text, then advance through each phase to see how work is split across workers, key-value pairs are emitted, shuffled by key, and reduced to final counts.

Open the demo →

Spark: Lazy Evaluation & the DAG

Transformations only build a plan. An action makes Spark run it.

An interactive Spark simulator. Build a PySpark program step by step, watch the DAG grow without any data being computed, then trigger an action and follow the job as it is split into stages, runs as parallel tasks, shuffles records between partitions, and sends results back to the driver.

Open the demo →

Dice Roll Distribution Simulator

Roll dice thousands of times and watch probability theory come true.

Free interactive dice roll simulator: roll 1 to 6 dice N times and compare the observed frequency distribution of the dice sum with the exact theoretical probabilities. Visualize the Law of Large Numbers and the Central Limit Theorem in your browser.

Open the demo →

Diffusion & Flow Matching in 2D

How generative models turn noise into data — and why the path decides how many steps they need.

Interactive 2D visualization of diffusion models (DDPM) and flow matching: watch the forward noising process, the learned score / velocity field, and sample generation from noise, then compare how sample quality depends on the number of sampling steps.

Open the demo →

LLM Decoding Playground: Temperature, Top-k, Top-p

A language model outputs probabilities, not words. See how temperature, top-k and top-p decide what comes next.

Interactive LLM sampling playground: adjust temperature, top-k and top-p (nucleus sampling) and watch how the next-token probability distribution changes, then sample tokens to compare greedy, precise and creative decoding.

Open the demo →

Maximum Likelihood: Fitting Frequencies

Minimize the negative log-likelihood by hand and watch a model learn the frequencies of its data.

Interactive worked example of maximum likelihood estimation: a two-outcome generator, its average negative log-likelihood, the derivative as a slope, gradient descent steps to the minimum, and the difference between training and held-out loss.

Open the demo →
Schedule a meeting