skipnothing/ML Foundations

ML Foundations

What ML is, how data becomes predictions, when it fits a problem, and where it goes wrong, practical intuition, no heavy math.

You'll need basic programming in any language, variables, loops, functions.

Loading…
01

What is Machine Learning?

Supervised, unsupervised, reinforcement, when ML works and when it doesn't

4/4
#1

Learning From Examples

Separate a rule you hand-write from a pattern a model learns off graded examples, then tag the feature columns, target, and prediction in a real email table.

You could write `if subject contains "FREE" then spam` and ship it, but the moment a spammer types "Fr€€" your rule is dead. There is a second way to build that filter, and it never touches a keyword list.

10 min
#2

Types of Machine Learning

Sort any problem into supervised, unsupervised, or reinforcement by the shape of its data, a filled answer column, no answers, or a reward earned by acting, never by its subject or algorithm.

Last topic you graded emails `spam` or `not-spam` and trained a filter, and that answer column is the whole reason it worked. Delete the column and you can still learn something from those emails, just not the same thing.

10 min
#3

How Models Learn

Trace one pass of the training loop, guess, measure the miss, nudge the weight, then predict what a too-big or too-small step does to the loss curve and when more passes stop paying off, all with zero math.

Last topic your filter could call an email `spam`, but nobody told it how. It starts out guessing, gets one number back for how far off it was, and quietly tunes itself, over and over, until the guesses stop missing.

12 min
#4

When ML Works (and When It Doesn't)

Run any problem through a four-condition test to tell a hand-written rule from a trained model, then judge whether your data is enough, labeled, and representative before writing a line of code.

You could write `if income < 12000: tax = 0` in one line, and you should. Other problems bury their answer in examples no line you type will ever catch, and telling the two apart comes first.

10 min
02

Data for ML

What kinds of data ML uses and why splitting matters

2/2
03

Supervised Learning

Regression, classification, trees, intuition not derivation

4/4
#7

Regression, Predicting Numbers

Read a predicted number off a line fitted to your data, catch when a straight line is the wrong shape for a curve, and distrust any prediction pushed past the range you measured.

A property site quotes the house on Maple Street at `$412,000`, and no agent typed that figure. A line drawn through thousands of past sales took the home's size and read the price straight off it.

10 min
#8

Classification, Predicting Categories

Sort a case into one of two categories by which side of a line it falls on, read its confidence off how far it sits from that line, and move the cut-off to trade wrongly-flagged real mail against spam let through.

A spam filter never answers `0.72`; it answers spam or not-spam, a name from a short list. The same filter also knows how sure it is, and hands you a dial for which wrong picks you can live with.

10 min
#9

Trees & Ensembles

Walk a loan application down a tree's yes/no branches to its verdict, see how one flipped answer reroutes it to the opposite call, and explain why a forest of disagreeing trees that vote beats a single tree that swings with its training data.

A loan officer never runs one formula; they ask `income > 50000?`, then a follow-up, then another, each answer narrowing toward approve or deny. A hundred officers who each ask different questions and pool their calls beat any single one.

12 min
#10

Overfitting & Underfitting

Spot an overfit model by the gap between its training and test scores, tell that apart from a too-simple model weak on both, and close the gap with more data, a simpler model, or regularization.

A pricing model reports `train_score = 1.00`, a flawless run on every house it studied, so the team ships it. On a hundred houses it never saw, it misses nearly every price; the perfect number was the warning.

10 min
04

Evaluation & Model Selection

Why accuracy misleads and how to choose the right model

3/3
View full 13-topic curriculum