In the four-stage pipeline from the previous article, training was one box: show the model examples, nudge its numbers until its guesses improve. That is accurate, but it hides the fork in the road. Set two systems the same task — decide whether a photo contains a dog — and they will train on the same photos, be scored the same way, and still learn different things.
The reason is a choice made before training starts: who decides what the model is allowed to look at. In classical machine learning, a person decides. In deep learning, the network decides for itself. Nearly everything people list as a difference — data volume, compute cost, explainability — follows from that one decision.
Machine learning vs deep learning: the one-sentence version
Machine learning learns a mapping from inputs to answers. Deep learning learns that mapping and the inputs — the measurements themselves.
In classical machine learning, someone hands the model a fixed list of measurements, and the model learns only how much each one counts. In deep learning, the measurements come from adjustable layers inside the network, and training adjusts them along with everything else. Both are machine learning; deep learning is the subset defined by that extra freedom.
| Classical machine learning | Deep learning | |
|---|---|---|
| Who decides what to measure | A person, using domain knowledge | The network, during training |
| What training adjusts | Weights on the given measurements | Those weights plus the measurements themselves |
| Typical input | Tables, or numbers computed by hand | Raw pixels, waveforms, text |
| Labelled data needed | Hundreds to thousands of examples | Often tens of thousands to millions |
| Explaining one decision | Readable: this weight on this measurement | Spread across millions of weights |
What a feature is, using a spam filter
A feature is a number you compute from the raw thing and hand to the model. Take the email spam filters built long before anyone called this AI.
An email is messy: paragraphs of text, links, headers, an attachment. To make it computable, you hand-build a few numbers per email — how many links it contains, whether the subject line is all capitals, how often the word "free" appears, whether the sender is in your contacts.
Each email becomes a row of numbers with a label attached: spam or not spam. That is supervised machine learning — examples with known answers, and a model that learns to reproduce those answers on new examples. A logistic regression learns one weight per feature, so a large positive weight on link count means more links push toward spam; a decision tree learns threshold rules instead.
The important part is what the model cannot do. If nobody computes a measurement, the model never sees it. Spam behavior living in some unbuilt feature stays invisible no matter how much data you feed in. That is why practitioners say a model is only as good as its features: the learning step is cheap and well understood, while deciding what to measure is slow, expert, domain-specific work 1.
Why hand-picked features hit a ceiling
For email, a person can name the features. For a photograph, that stops working.
Suppose the task is telling dogs from cats. What would "amount of fur" even be, numerically, in a grid of pixels? Before deep learning, computer-vision researchers spent years hand-building descriptors — statistics of edge directions, gradient patterns, colour histograms — and fed those vectors to a classifier. It worked, but each descriptor was tuned to a narrow kind of image.
The ceiling showed up in public in 2012. A deep network entered the ImageNet image-recognition contest with a 15.3% top-5 error rate — its five best guesses omitted the correct label 15.3% of the time — against 26.2% for the best entry built the classical way. That runner-up used engineered image features plus a classifier; the winner used raw pixels. It compares whole systems rather than one network against one classical model, but the ten-point gap pointed one way: the hand-built approach had run out of room 3.
AlexNet, as the winning network is now called, had about 60 million adjustable numbers and took five to six days on two consumer graphics cards 3. That is the trade. Give up hand-built features and you must learn them, which costs data and compute.
What the layers in a neural network actually do
A neural network is a stack of layers, each transforming the numbers that come out of the previous one. The key point for this comparison: the early layers are feature detectors, and nobody wrote them.
In an image network, the first layer ends up responding to short edges and colour boundaries. The next combines those into textures and small shapes. Later layers combine shapes into parts — an ear, a wheel, an eye — and the last layers combine parts into whole objects 2. Nobody specifies "detect ears"; training discovers it, because those intermediate measurements turn out to reduce error on the final answer.
The training signal is unchanged: compare the output with the correct answer, then adjust every weight slightly in the direction that would have made it less wrong. What changed is that the adjustment now reaches back into the feature detectors, so features and judgment improve together. That is end-to-end learning — one error signal, tuned across the whole stack instead of only the last step.
"Deep" means several of these transforming stages are stacked. A network with a single hidden layer builds no feature hierarchy, so calling it deep buys nothing.
The bill for learning your own features
Three costs follow from letting the network choose its measurements.
Data. If a person supplies the features, a few hundred labelled rows can be enough, because each row already carries the information that matters. If the network must discover what to measure, it has millions of numbers to pin down, each needing evidence. That is why deep learning is data-hungry — and why it shines on pixels, audio and text, where no human can name the right measurements but examples are endless.
Compute. Training now includes learning the features, so runs are long: days on specialised hardware in 2012, months at large scale today. Classical models often train in seconds.
Explainability. A logistic regression can say "each extra link raises the spam score by this much." A deep network's reason for one decision is spread across millions of weights, with no single number to point at. Tools that highlight which input regions mattered approximate the model's behavior rather than lay out its reasoning. When a decision must be justified to a customer or an auditor, that gap is a real cost — part of why simpler models survive in credit scoring.
Cases where the obvious answer is wrong
"Deep learning is always better." Not on tables. A 2022 benchmark across 45 tabular datasets found tree-based models — random forests, gradient boosting — still ahead of neural networks on medium-sized data, and cheaper to train 4. Spreadsheet data already arrives as named, meaningful columns, so the step deep learning removes has largely been done for you by whoever recorded the data.
"You need huge data to use deep learning." Only to train one from scratch. In practice you start from a model someone already trained and reuse the measurements it discovered. Those reusable learned features — embeddings — let you adapt a system to a new task with a few hundred examples. The expensive part was paid once, elsewhere.
And one correction to the framing: every deep-learning system is a machine-learning system. The question is never "which field," it is "should the measurements be specified by hand or learned?"
How to tell which one a problem needs
- Can you name the measurements that matter? If yes — prices, counts, dates, ratios, user attributes — start with classical machine learning on those columns. If the input is pixels, audio or free text and you cannot write down what to measure, you need learned features.
- How many labelled examples do you have? A few hundred points toward classical models or a pretrained network you adapt. Millions point toward training deep from scratch, which is rarely what an individual or a small team does.
- Must each decision be explained? The stronger that requirement, the more weight the simpler, readable model deserves.
Everything else in this series lives on the deep-learning side of that fork. The next piece takes up tokens: how text gets chopped into pieces a network can be trained on.