Key idea
Training data
Examples a model uses to find a pattern. Poor or unbalanced examples can lead to unreliable predictions.
๐ค Ages 11 and up ยท how machines learn
Explore how AI learns from examples: predictions, training data, artificial neurons, neural networks and gradient descent, with interactive lessons for beginners.
Artificial intelligence (AI) is a broad field. Machine learning (ML) is one way to build AI: instead of writing every rule by hand, people train a model on examples so it can find patterns and make predictions. A neural network is one kind of machine-learning model, built from connected layers of small calculations called artificial neurons.
Start with a small prediction problem, then tune one neuron and explore how training can reduce mistakes. The activities use simple numbers and diagrams, so you can begin without coding or advanced maths. They show the core ideas, while making clear that real AI systems are much larger and more complicated.
Interactive learning path
Each short activity introduces one building block of machine learning. Change the numbers, make a prediction and see how the model's behaviour changes.
Step 01 ยท 6โ9 min
Use word counts and probabilities to see how a simple language model makes a next-word prediction.
Open Predicting the Next Word (AI) โStep 02 ยท 7โ10 min
Change inputs, weights and bias, then teach a single artificial neuron to follow an AND or OR rule.
Open How a Neuron Works (AI) โStep 03 ยท 7โ10 min
Explore loss as a landscape and adjust the learning rate to see gradient descent move toward a better answer.
Open Gradient Descent (AI) โThe ideas behind AI
A machine-learning model starts with examples. In supervised learning, examples include inputs and known answers called labels. A model makes a prediction; a loss function measures how far that prediction is from the answer. During training, an optimisation method adjusts the model's parameters to reduce that error across many examples.
In a neural network, each artificial neuron combines inputs using learned weights and a bias, then applies an activation function. Layers pass their outputs forward, allowing the network to represent more complex patterns than a single neuron can. The neuron lesson makes the smallest version tangible; the gradient-descent lesson shows the basic idea behind changing parameters during training.
A model should also be checked on examples it did not train on. If it memorises the training examples instead of learning a pattern that transfers, it is overfitting. A useful AI lesson therefore includes data quality, testing, limitations and careful interpretationโnot just a model that appears to work once.
Key idea
Examples a model uses to find a pattern. Poor or unbalanced examples can lead to unreliable predictions.
Key idea
Features are the information given to a model; a label is the known answer in a labelled training example.
Key idea
Learned numbers that control how strongly a neuron responds to its inputs and where its decision threshold sits.
Key idea
Loss measures prediction error. Training changes model parameters in an effort to make that error smaller.
Key idea
A model's ability to work on new examples it has not seen, rather than only repeating its training data.
Key idea
AI that creates new text, images, audio or other output. A language model generates text by predicting likely tokens in context; its output still needs checking.
Continue with the machine-learning and neural networks beginner guide, or review probability, slope and rate of change, and Python.
Covered topics
Want a teacher to guide you through AI? See AI classes for curious kids. Teachers in our network teach every class and board, and a teacher is matched to the learner before anything is booked. We do not promise marks, grades or results.
FAQ
Machine learning is a way to build software that finds patterns in examples and uses them to make predictions. People choose the data and task, train the model and check how well it works on new examples.
AI is the broad field of building systems that perform tasks associated with intelligence. Machine learning is one approach within AI that learns patterns from data. Deep learning is machine learning that uses neural networks with multiple layers.
During training, a neural network compares its predictions with known answers, measures the error and adjusts weights and biases to reduce that error. It must also be evaluated on examples it has not trained on.
No. These beginner lessons use diagrams, sliders, percentages and simple arithmetic. Python and more advanced maths are useful later, but are not prerequisites for this introduction.
No. It is a visual introduction to prediction, artificial neurons and gradient descent. It explains foundational ideas, not every kind of AI or the full mathematics and engineering behind modern models.
The lessons show related foundations: language models predict likely next tokens, neural networks process patterns, and training adjusts model parameters. Modern language models use much larger architectures and more advanced training methods than the small demonstrations here.
The browser lessons are designed for curious learners from about age 11. They do not require an AI account or collect personal details. Parents should check the age rules and privacy settings of any separate AI tool a child uses.
Try probability, slope and Python, then build a small project with a teacher or a carefully chosen beginner course. A parent guide explains how to discuss AI safety, privacy and checking answers.
Keep exploring
Number sense, fractions, percentages, shapes, counting and sets: the ideas every later topic stands on.
See the lessons โEquations, slope, systems, quadratics and Pythagoras: algebra made visible with balances, lines and curves.
See the lessons โProbability, averages and correlation: how to measure chance and what a pattern in data can and cannot tell you.
See the lessons โRate of change and area under a curve: the two big ideas of calculus, seen before they are symbolised.
See the lessons โStart a conversation
Tell us the age, topic and what feels hard. We match a teacher from our network and confirm the format before anything is booked.
Play it, don't just read it
Free games that need no sign-up. Pick one and play for five minutes.