Learn how a model learns, then check it yourself.
Open the course page for the chapter list and the way to start.
Open the machine learning courseSee the sports analytics course
Mirage Academy · Machine learning
You see machine learning results at work, and you cannot yet tell whether a model learned anything real. This course shows how a model learns from data, how to train one, and how to check its score instead of trusting it. It starts from the beginning and ends with a classifier you evaluate yourself.
Open the machine learning courseSee the computer vision course
The course
The course is for software engineers and technical product people who build AI features. It is a beginner course, and it is taught in English. Watch the intro, then climb the steps.

You see machine learning results at work, but you cannot yet tell whether a model learned anything real. This course shows how models learn from data, and how to check one yourself. Today a model may feel like a black box. First, you will name the kind of learning a task needs. Second, you will frame it as regression or classification. Third, you will judge a score with a validation set instead of trusting it. At the core sits one loop. The model makes a prediction. A loss function measures the error. Gradient descent adjusts the weights. A validation set checks that the model still generalizes. Then you build on that loop with neural networks, embeddings and transfer learning. In the capstone, you train and evaluate a classifier from start to finish. If you want to train, validate and judge a model yourself, start with chapter one, on learning from data.
The loop at the core of the course
The steps
Chapter 1
This chapter covers supervised and unsupervised learning, shown with a threshold rule and with k-means, then features, data quality and baselines.
Example points, invented for this page
Class AClass Bthreshold
2 of 12 points on the wrong side of the line
An example threshold rule on one feature. The points on the wrong side of the line are counted.
cluster center
An example of two groups, each with a center at the mean of its points.
Lesson 1: what it means to learn from data.
Lesson 2: supervised learning, shown with a threshold rule.
Lesson 3: unsupervised learning, shown with k-means.
Lesson 4: features, and the quality of the data.
Lesson 5: baselines, honest scores and mistakes to avoid.
Chapter 2
This chapter covers fitting a line, measuring regression error, logistic regression, choosing a threshold, and trees and nearest neighbors.
Example data, invented for this page. The curve is an example: a common way to picture logistic regression
Mean squared error: 3.8
Each segment is the error of one point. The mean squared error is the average of their squares.
threshold 0.5
sample score 1.2 gives 0.77: above the threshold: class yes
Example: a common way to picture logistic regression, with a threshold.
Lesson 1: fitting a line.
Lesson 2: measuring regression error.
Lesson 3: logistic regression.
Lesson 4: choosing a threshold.
Lesson 5: trees and nearest neighbors.
Chapter 3
This chapter covers loss as a score, the gradient, learning rate, batch, mini-batch and stochastic steps, and reading a training run. Pick a learning rate in the example and take steps.
The data is an example for this page: four points that a weight of 2 fits exactly.
best weight 2
In this example each step lands closer to the best weight.
Learning rate 0.05, 0 steps: weight 0, loss 30. In this example each step lands closer to the best weight.
The rule: one step sets the weight to the weight minus the learning rate times the gradient. For this example the distance to the best weight is multiplied by 1 minus 15 times the learning rate at each step. When that factor sits between minus 1 and 1 the run settles, and it grows when the rate is above about 0.133.
Lesson 1: loss as a score.
Lesson 2: the gradient.
Lesson 3: learning rate.
Lesson 4: batch, mini-batch and stochastic.
Lesson 5: reading a training run.
Chapter 4
This chapter covers the neuron, layers and the forward pass, counting parameters, backpropagation in one step and why hidden layers.
An example network, invented for this page
Inputs: 3Hidden layer 1: 4Hidden layer 2: 4Output: 1
The rule: a layer with n inputs and m outputs has n times m weights and m biases. The network's parameters are the sum over its layers.
Lesson 1: the neuron.
Lesson 2: layers and the forward pass.
Lesson 3: counting parameters.
Lesson 4: backpropagation in one step.
Lesson 5: why hidden layers.
Chapter 5
This chapter covers three sets, overfitting, cross-validation, regularization and early stopping, and leaks in the pipeline.
Example split, not from the course. Row counts invented for this page: 100
validatetrain5 x 16 = 80
Example split, not from the course: here the test rows stay out of the folds.
The rule of this example picture: the rows outside the test set are cut into k folds, each fold is the validation fold once, and the other folds train.
Lesson 1: three sets.
Lesson 2: overfitting.
Lesson 3: cross-validation.
Lesson 4: regularization and early stopping.
Lesson 5: leaks in the pipeline.
Chapter 6
This chapter covers going from ids to vectors, similarity, nearest neighbors, how embeddings are learned, and limits.
Two number vectors, invented for this page
The rule: the cosine of two vectors is their dot product divided by the product of their lengths. It is 1 when they point the same way and 0 when they are at a right angle.
Lesson 1: from ids to vectors.
Lesson 2: similarity.
Lesson 3: nearest neighbors.
Lesson 4: how embeddings are learned.
Lesson 5: limits.
Chapter 7
This chapter covers reusing a pretrained model, freezing it and training a head, unfreezing, learning rates and domain shift.
A picture of the idea, not a real model
trainedfrozen (dashed)
The last lesson of this chapter is about domain shift.
Lesson 1: reusing a pretrained model.
Lesson 2: freeze and train a head.
Lesson 3: unfreezing.
Lesson 4: learning rates.
Lesson 5: domain shift.
Chapter 8
You frame the task, work one step by hand, train and watch, evaluate honestly and write the report.
The capstone in five steps
Same example data as the island above.
How you learn
Each lesson is paired with an AI coach in the Academy, and you speak to it by voice.
After a lesson on loss or overfitting, the coach asks follow-up questions to test whether you understood, as the app describes it.
Whatever notes you save are where your next session starts, according to the app.
Finishing this course earns a certificate, or a confirmation of participation, depending on how you went through it. It is a PDF with a verification code that anyone can check on a public page. Mirage issues it itself; it is not a state-recognized qualification.
Software engineers and technical product people who build AI features, at beginner level.
Chapter 3 covers loss as a score, the gradient, learning rate, batch, mini-batch and stochastic steps, and reading a training run. The interactive example on this page runs one example with four learning rates.
Yes. Chapter 4 covers the neuron, layers and the forward pass, counting parameters, backpropagation in one step and why hidden layers.
The course pitch is to judge a score with a validation set instead of trusting it. Chapter 5 covers three sets, overfitting, cross-validation, regularization and early stopping, and leaks in the pipeline.
Chapter 6 covers going from ids to vectors, similarity, nearest neighbors, how embeddings are learned, and limits. The picture on this page compares example vectors by cosine.
The capstone: you train and evaluate a classifier. You frame the task, work one step by hand, train and watch the run, evaluate honestly and write the report.
Yes, or a confirmation of participation, depending on how you went through the course. The PDF has a verification code that a public page can confirm, and the page about certificates states it is not a state-recognized qualification.
You speak with it by voice. The app says it asks follow-up questions and tests what you understood, for example why a model overfits.
Open the course page for the chapter list and the way to start.
Open the machine learning courseSee the sports analytics course