interactive demos
Interactive Machine Learning and Natural Language Processing Demos
Hands-on demonstrations of how classic methods in language processing and machine learning actually work. Each one runs live in your browser on a small example: change the inputs, move the sliders and watch what happens. Start with one of the suggestions below, or browse and search everything.
Start here no background needed
One of the first chatbots (1966): a simulated therapist that holds a conversation with nothing but keywords, patterns and templates, with every step of each reply shown.
Fit a line or curve through blood pressure readings by least squares, drag points to see what moves the fit, and watch a flexible curve overfit.
Grow a flowchart of yes/no questions that sorts patients by glucose and BMI, or thyroid results, and see each question as a cut through the data.
Step through the two moves of k-means, assign and update, and find out when the clusters it finds are real and when they are not.
Classical NLP9How computers handled language before large language models: rules, counting and the first word vectors.
Pattern matching with regular expressions: pull doses, p-values and confidence intervals out of a trial abstract, and see where hand-written rules break.
One of the first chatbots (1966): a simulated therapist that holds a conversation with nothing but keywords, patterns and templates, with every step of each reply shown.
How raw text becomes words a program can count: splitting, lowercasing, removing stopwords and stemming. Every other demo uses this pipeline.
Scores each word by how often it appears in a document and how rare it is across the collection, the classic basis for search and keyword extraction.
The default ranking in Lucene, Elasticsearch, Solr and most open-source search tools: TF-IDF with diminishing returns for repeated words and a tunable correction for document length, compared side by side with TF-IDF.
A probabilistic classifier that learns to recognise study design (trial, cohort or review) from example sentences, with the evidence from every word laid out.
Place points on a plot and watch a support vector machine draw the widest possible boundary between two classes, with linear, polynomial or RBF kernels.
Builds a vector for each word from the words around it in research sentences, then compares words by the angle between their vectors.
Explore word vectors learned from billions of words, in 3D, and the arithmetic behind analogies like cardiologist − heart + brain ≈ neurologist.
Classical machine learning13Fitting, classifying and clustering: the classic methods, each running live on small datasets.
Fit a line or curve through blood pressure readings by least squares, drag points to see what moves the fit, and watch a flexible curve overfit.
Watch a line find its way to the best fit by walking downhill on a map of its error, and see why the learning rate, the scaling of the data and the choice of optimiser matter.
Turn a yes/no outcome into a probability with the S-curve, fit it by hand and by maximum likelihood, and read the odds ratios.
Classify a new patient by asking the most similar patients already seen, and see how the number of neighbours and the scaling of features change the answer.
Place points on a plot and watch a support vector machine draw the widest possible boundary between two classes, with linear, polynomial or RBF kernels.
Grow a flowchart of yes/no questions that sorts patients by glucose and BMI, or thyroid results, and see each question as a cut through the data.
Grow a hundred slightly different trees on resampled data and average their predictions: the ragged single-tree boundary smooths out.
Add small trees one at a time, each fitting what the model still gets wrong, and watch the curve take shape.
Train a small network on circles, spirals and checkerboards, add layers and neurons, and see what each neuron has learned to detect.
Move a test's threshold and follow sensitivity, specificity and the ROC curve, see why rare diseases make positive results unreliable, and pick a model by cross-validation.
Step through the two moves of k-means, assign and update, and find out when the clusters it finds are real and when they are not.
Find the directions in which data varies most, rotate onto them, and squeeze eight lab results into a two-dimensional picture.
Watch a grid of units unfold over the data and sort it, without any labels, so that similar items end up side by side.
Everything runs in your browser: nothing you type, draw or upload is sent anywhere.