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

Tell a rule you write by hand apart from a pattern a model learns from examples, then label the features, target, and prediction in a real data table.

You can spot a junk email in half a second, but try writing the `if` statement that catches every one. Block the word "free" and you flag the shipping notice you wanted.

10 min
#2

Types of Machine Learning

Sort a problem into supervised, unsupervised, or reinforcement learning by reading the data it holds, an answer column, no answers, or a reward earned by acting.

You have a spreadsheet of past loans, each row stamped `repaid` or `defaulted`; another file lists shoppers with nothing stamped on them, and a third is a game bot chasing points. Same goal, learn, but the data forces three paths.

10 min
#3

How Models Learn

Trace one pass of the training loop, guess, measure the error, nudge the weight, then explain why more passes stop helping and how the step size can wreck or rescue a run, all with zero math.

A brand-new model looks at a $400k house and predicts $1.2M, wildly wrong, because its dials were set at random. Nobody fixes it by hand; it fixes itself by guessing, checking the miss, and adjusting, again and again.

12 min
#4

When ML Works (and When It Doesn't)

Decide whether a problem fits a hand-written rule or a trained model by running one four-condition test, then inventory the enough, labeled, representative data you'd need before any code.

A junior dev spends a week writing `if subject.contains('free')` rules to catch spam, and the spammers route around every one by Friday. The pattern was real, but no human could keep writing it down fast enough.

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 number off a fitted line, then tell when a straight line is too simple for the data and when a prediction has strayed past the range you measured.

Feed a model a stack of past house sales, then ask what a 2,000-square-foot place should cost. It answers $410k, a price that appears nowhere in the data, by reading the trend those sales trace out.

10 min
#8

Classification, Predicting Categories

Draw the boundary that separates two categories, read a case's confidence from how far it sits from that line, and set the cut-off that decides which mistakes the model makes.

A new email hits your inbox, and the model will not hand back a number this time. It picks one bucket, `spam` or `not spam`, and commits: a real message sorted the wrong way rots unseen in the junk folder.

10 min
#9

Trees & Ensembles

Trace a loan application down a tree's yes/no branches to a verdict, then explain why a forest of trees that vote beats any single tree that memorized its examples.

A loan officer never weighs your whole life at once: they fire one question, `income > 50000?`, then the next, then the next, until a yes/no chain lands on approve or deny. A model can decide the very same way.

12 min
#10

Overfitting & Underfitting

Diagnose a model that memorized its training data from the gap between its training and test scores, tell that failure apart from a model too simple to catch the pattern, and pull an overfit model back with more data, a simpler model, or regularization.

A spam filter aces every email in its training folder, posts `99% correct`, then meets your inbox and waves the junk through while quarantining your boss: it learned those exact emails, not what spam actually looks like.

10 min
04

Evaluation & Model Selection

Why accuracy misleads and how to choose the right model

3/3
View full 13-topic curriculum