Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
ML from Zero: Machine Learning, Math & Python from Scratch
New
Rating: 5.0 out of 5(2 ratings)
4 students

ML from Zero: Machine Learning, Math & Python from Scratch

Build 11 ML algorithms from scratch in Python and NumPy. Derive the math, code every model, validate vs scikit-learn.
Last updated 9/2026
English

What you'll learn

  • Derive and implement 11 core ML algorithms from scratch in pure Python and NumPy
  • Prove your implementations are correct by validating them against scikit-learn
  • Read the mathematical notation used in ML papers with confidence
  • Build gradient descent, backpropagation and PCA by hand, from the chain rule up
  • Complete 14 real-dataset projects, including 3 full end-to-end capstones
  • Debug models that train but don't learn: vanishing gradients, leakage, bad thresholds
  • Choose the right algorithm, metric and validation strategy for a real problem
  • Understand exactly what happens inside .fit()

Course content

12 sections • 66 lectures • 6h 34m total length
  • What-From-Scratch-Means4:41

    What .fit() is actually doing when you call it, and why the engineers who can answer that question get hired. A tour of the eleven algorithms you'll build yourself over the next six hours.

  • Reading-ML-Math5:53

    The nine pieces of notation that appear in almost every ML paper and textbook — sigma, subscripts, the transpose, the gradient, and the rest — each one decoded into the Python line it corresponds to. If maths notation is what stopped you before, start here

  • Setup3:11

    Install everything you need and download the course repository. Run the test suite once at the end so you can see all 27 checks pass before you've written a line — those are the tests your own code will have to satisfy.

  • How-to-use-this-course3:34

    Every algorithm in this course follows the same six steps: derive, implement, vectorize, apply, validate, practise. Understanding the pattern once makes the remaining eleven sections much faster.

  • Introduction, Setup & Reading the Math

Requirements

  • Basic Python: functions, loops, lists. That's genuinely it.
  • No calculus or linear algebra required - Section 2 builds every piece of math the course uses, from nothing
  • A laptop. No GPU, no cloud account, no paid services

Description

Many people learn machine learning by calling a library function and hoping for the best. When a model does not work, they cannot tell why. This course takes a different route. You start from zero, learn the maths that machine learning is built on, and write each core algorithm yourself in Python before comparing it with a professional library.


You do not need a maths degree. Each idea is explained in plain language first, then shown as a formula, then turned into a few lines of code. By the end, the formulas behind machine learning will feel like tools you can use, not symbols to memorise.


What you will learn


- Python and NumPy for machine learning: arrays, vectorisation, broadcasting and generating data

- Linear algebra essentials: vectors, the dot product, matrices and matrix multiplication

- Calculus for ML: derivatives, partial derivatives, the chain rule and gradient descent

- Probability and statistics: mean, variance, distributions and Bayes rule

- Linear regression from scratch, with gradient descent and the normal equation

- Logistic regression and classification, including the sigmoid and log loss

- Model evaluation: train/test split, confusion matrix, precision, recall, regularisation and cross-validation

- Beyond the basics: k-nearest neighbours, k-means clustering and how decision trees choose a split


How the course works


- Short, focused video lectures with captions

- Code walkthroughs you can follow line by line

- Companion Python scripts and Jupyter notebooks for every module

- From-scratch code checked against scikit-learn, so you can see that your version gives the same answers


Who this course is for


This course is for beginners who want to understand machine learning properly, programmers who want the maths explained through code, and students who find ML textbooks hard to follow. If you know basic Python and want to know what happens inside a model, this course is for you.


By the end, you will be able to read a machine learning formula, implement it in Python, and judge whether a model is working.


AI disclosure: this course uses AI tools to support content creation.


Who this course is for:

  • Developers who can call .fit() but want to know what's actually inside it
  • Students who hit the math wall in other ML courses and bounced off
  • Working engineers preparing for ML interviews
  • Anyone who finished a "practical ML" course and felt they learned an API, not a subject