- Beginner
- Text, code and quiz
Machine Learning Foundations
What it means for a program to learn from data. Build linear regression and k-nearest neighbours from scratch, then measure them honestly.
- Level
- Beginner
- Study time
- 1h 11m
- Chapters
- 2
- Lessons
- 6
- Quizzes
- 1
Created by ReLU Learning Team
Courses by the ReLU Learning team · Last updated October 2026
About this course
Libraries make machine learning look like one line of code. This course opens that line up. You will build two classic models with nothing but plain Python, so you know what they do, why they work, and when they fail.
Every idea comes with code you can run and change in the lesson. You need only the basics of Python.
What you will be able to do
- Explain features, labels, training and test data
- Fit a straight line to data with least squares
- Build a k-nearest neighbours classifier
- Measure a model with accuracy, precision and recall
What you need first
- Basic Python: lists, loops and functions (see Python for AI: The Essentials)
Course content
2 chapters · 6 lessons · 1 quiz
1. What learning means
2 lessons · 18m
- TextFrom rules to learningFree preview8m
- TextFeatures, labels and splitsFree preview10m
2. Your first models
4 lessons · 53m
- TextLinear regression by hand15m
- Codek-nearest neighbours20m
- TextMeasuring a model12m
- QuizCheck your understanding6m
About the instructor
ReLU Learning TeamCourses by the ReLU Learning team
- 4 courses
- 1 learner
Hands-on courses in Python, machine learning and AI, written so that every idea is something you can run.