Session · 5 topics · 10 slides

Machine Learning, A Working Session

The foundations underneath any model: how learning from data actually works, why fitting the training set isn't the goal, what a model learns from, and what it takes to trust and run one honestly.

Learning types Overfitting Features Evaluation Lifecycle

Five topics, foundation first

Nothing here is specific to any one model architecture — these are the ideas underneath supervised classifiers, recommendation systems, and the deep learning models behind current generative AI alike. The session moves from how a model learns at all, to whether it actually learned the right thing, to what happens once it's running for real.

SESSION 01

The three types of learning

Supervised, unsupervised, and reinforcement

Most machine learning problems fall into one of three setups, distinguished by what kind of feedback the model has to learn from. Supervised learning trains on examples that already have the right answer attached — a labeled photo, a priced house — and learns to predict that same kind of answer for new examples. Unsupervised learning has no right answer to check against; it looks for structure in the data itself, like grouping similar customers together with nobody having said in advance what the groups should be.

Reinforcement learning is different from both: there's no fixed dataset of right answers at all. An agent takes actions in an environment and learns from a reward signal that arrives afterward, adjusting its behavior toward whatever earned more reward over time — closer to learning through trial and error than to learning from an answer key.

slides 2–3
SESSION 02

Generalization and overfitting

Fitting the data isn't the same as learning the pattern

A model can be trained until it fits its training examples almost perfectly — and that's not actually the goal. The real goal is generalization: performing well on new examples it never saw during training. A model that memorizes its training data rather than learning the underlying pattern will look excellent on paper and fail the moment it meets something slightly different — a failure mode called overfitting.

The practical check is a train/test split: holding a portion of the data back, never letting the model see it during training, and only checking performance on that held-out portion afterward. A model that does well on training data but poorly on the held-out test data is showing the classic signature of overfitting — it learned the training set, not the pattern the training set was supposed to represent.

new point

A boundary that snakes around every training point (dashed) fits the training data perfectly and misclassifies the new point highlighted above — a simpler boundary would have generalized better.

slides 4–5
SESSION 03

What the model actually learns from

Chosen by a person, or learned by the model

A model never sees raw reality directly — it sees features, the specific measurements or properties chosen to represent each example. Classical machine learning depends heavily on a person choosing good features by hand: deciding that a house's square footage and location matter more than the color of its front door, before the model ever sees any data.

Deep learning changed this by learning its own feature representations directly from raw data — an image model doesn't need someone to hand-engineer "edge" and "curve" detectors; it discovers useful intermediate representations on its own during training. That shift, more than any single technique, is what separates most classical machine learning from the deep learning behind current generative AI.

slides 6–7
SESSION 04

Evaluating a model honestly

Accuracy alone can be misleading

A single accuracy number can hide a genuinely useless model. If 95% of a dataset belongs to one class, a model that always predicts that one class scores 95% accuracy while never actually learning anything — which is why evaluation needs metrics suited to the actual task, not just a headline percentage.

The right metric depends on what a wrong answer actually costs. A missed medical diagnosis and a misclassified email are both "errors," but the acceptable trade-off between catching more real cases and tolerating more false alarms is completely different between them — evaluation is a design decision about the task, not a fixed formula applied the same way everywhere.

slides 8–9
SESSION 05

The practical lifecycle

Training is the middle of the process, not the whole thing

A working ML system starts well before training — collecting and cleaning data, deciding what to predict and how to measure success — and continues well after it: deploying the model somewhere it can actually be used, and then watching it over time.

That last part matters more than it sounds: the real world changes after a model is deployed, a phenomenon called drift, and a model that performed well at launch can quietly degrade as the data it sees in production stops resembling the data it was trained on. Monitoring for that is part of the job, not an optional extra.

slide 10

Common questions

What are the three main types of machine learning?

Supervised learning, trained on examples with a known right answer; unsupervised learning, which finds structure in data with no right answer to check against; and reinforcement learning, which learns from a reward signal received through interaction with an environment rather than from a fixed set of labeled examples.

What is overfitting?

When a model fits its training data almost perfectly by memorizing it rather than learning the underlying pattern, so it performs well on training data and poorly on new data it hasn't seen. The practical check is a train/test split, evaluating performance only on data the model never trained on.

What's the difference between classical machine learning and deep learning in terms of features?

Classical machine learning generally relies on a person hand-choosing which features of the data matter before training begins. Deep learning learns its own feature representations directly from raw data during training, without a person engineering them by hand.

Why isn't accuracy always a good way to evaluate a model?

Because a single accuracy number can hide a useless model on an imbalanced dataset — if 95% of examples belong to one class, always predicting that class scores 95% accuracy without learning anything. The right metric depends on what a wrong answer actually costs for the specific task.