Technology

Machine Learning: how a model learns from data and how to tell if it is any good

How a model learns from labeled examples, why data is split into training, validation and test sets, how to spot overfitting and data leakage, and how to judge a model with accuracy, precision and recall. Worked through on fictional cafés, photo collections and forums, with school arithmetic only.

3 lessons, 18 steps

Get it on Google Play

What a model learns from examples

Machine learning is how a program learns a rule from examples instead of being given the rule. This course shows what happens inside that process and how to tell whether the result can be trusted. It needs no code and no advanced math: every step uses school arithmetic.

The course has three lessons. The first sets up the vocabulary: features, labels and a model. You decide which column of a made-up table can be a feature, tell regression from classification, run a simple linear model by hand and score it with the squared error and the mean squared error. The second lesson is about data the model has not seen: splitting examples into training, validation and test sets, reading training and validation errors round by round to spot overfitting, and finding the column that leaks the answer into the model. The third lesson asks whether a model is any good. You read a confusion matrix, see how a model can reach 99% accuracy while finding nothing, work out precision and recall, and decide which one matters more when a missed case is expensive.

Each lesson opens with a short explanation and gives you six steps: you pick an answer, put steps in order, label a task or type a number. When your answer is off, the AI tutor first asks a question about it, then gives a hint, then a partial step. Show solution is always available, and a short quiz before and after each lesson shows what changed.

This is one of the editorial courses in Ai Teacher. The problems and worked solutions were written in advance, and definitions were checked against the public sources listed below. All the companies in the examples are made up.

What you'll learn

  • Tell features from labels and score a linear model with the mean squared error
  • Split data into training, validation and test sets and spot overfitting and leakage
  • Read a confusion matrix and calculate accuracy, precision and recall

Lessons

  1. Learning from examples: features, labels and a model

    6 steps, 4 min intro

  2. Training, testing and overfitting

    6 steps, 4 min intro

  3. Is the model any good? Accuracy, precision and recall

    6 steps, 4 min intro

A precision step from lesson 3

Tutor: In a made-up check of 800 forum posts, 96 really are off-topic. The model flags 80 posts, and 60 of the flagged posts really are off-topic. What is the model's precision, in percent?

You: 62.5%. The model found 60 of the 96 off-topic posts.

Tutor: Precision is about the posts the model flagged. How many did it flag?

You: 80. So 60 ÷ 80 = 0.75, which is 75%.

Tutor: Yes, 75%. Dividing by all 96 off-topic posts gives the recall instead, and that is the next step of the lesson.

Based on a real step from lesson 3. The tutor's wording varies, and AI can be wrong: the tutor answers from the course material and labels a reply it could not check.

Who this course is for

  • You hear about trained models, test sets and accuracy at work and want to know what the words mean.
  • You use AI tools and want to understand how a model is built and checked.
  • You want to read a result such as 99% accuracy and know when the number misleads.
  • You know school arithmetic and do not write code.

Questions about Machine Learning

Do I need to know programming or calculus?

No. There is no code in the course. The steps use school arithmetic: multiplying, subtracting, dividing and percentages.

How is this different from AI for Everyone?

AI for Everyone explains what AI tools and language models are and how to check their answers. This course goes one level down: how a model is trained on examples, why it is tested on data it has not seen and how to measure its mistakes.

Is the course free?

One lesson in Ai Teacher is free. After that, a subscription opens all lessons. You can pay weekly or yearly in Google Play, and usage limits apply.

Sources

Facts and definitions were checked against these public sources. Lesson text and examples were written independently; no text was adapted.

Start Machine Learning: How Models Learn from Data in Ai Teacher

One lesson in the app is free. Ai Teacher is available for Android on Google Play.

Get it on Google Play