Our Algorithm Doesn’t Cut It
Our program can successfully forecast pizza sales, but why stop there? Maybe we could use the same code to forecast other things, such as the stock market. We could get rich overnight! (Spoiler: that wouldn’t really work.)
If we tried to apply our linear regression program to a different problem, however, we’d bump into an impediment. Our code is based on a simple line-shaped model with two parameters: the weight w and the bias b. Most real-life problems require complex models with more parameters. As an example, remember our goal for Part I of this book: we want to build a system that recognizes images. An image is way more complicated than a single number, so it needs a model with many more parameters than the ...
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