The Book of
Machine Learning.

Machine learning from first principles, one idea at a time. Every chapter starts with a question, works through a real example, and gives you something to try.

21 chapters · 79 figures · 105 exercises · free

Try it: Fit a line
1 hours, score 481.5 hours, score 532 hours, score 503 hours, score 603.5 hours, score 574 hours, score 665 hours, score 685.5 hours, score 756 hours, score 717 hours, score 828 hours, score 839 hours, score 91
off by 21.3 points

Drag the two orange dots until the line runs through the students.

A question from the book“How do you do arithmetic on a whole table of data at once?”Toolkit 0.1 →

Where to start

Preface

This book assumes you can read a little code and remember some school algebra. Nothing more. Each chapter teaches one idea, uses the same handful of small datasets, and puts the mathematics after the example rather than before it. Words with a dotted underline explain themselves when you point at them.

A chapter takes about a quarter of an hour to read, and longer if you play with the figures, which you should. Each one ends with exercises and their worked solutions.

Search

    The Book of Machine Learning
    Search
    Reading settings
    Text size
    Colours

    Saved in this browser only.

    Keyboard shortcuts
    /
    Search the book
    ← →
    Previous and next chapter
    g
    Glossary
    c
    Table of contents
    e
    Jump to the exercises
    t
    Reading settings
    ?
    Show this list
    Esc
    Close a window or pop-in