Chapter 2. The Search for Structure
All models are wrong, some are useful.George Box
In the last chapter we’ve implemented the perceptron, an algorithm that learned a separating line from a handful of data points. We saw how the perceptron adjusted its parameters every iteration until it found a boundary that correctly classified the data.
The data we used were the truth tables for AND and OR, two ubiquitous boolean functions. In fact, when we are first learning logic, the boolean functions are many times defined in terms of their truth tables. In this case, data and function coincide. The four examples we’ve seen tell us everything we need to know about these functions. There is nothing left unknown.
But that is rarely the case in the real world.
When we speak about “data out there in the world,” we usually imagine measurements like heights of animals, contract values, pixel intensities, sensor readings. Yet from a modeling perspective, data is not merely a list of numbers. It is the visible ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access