Chapter 26. AI
Even a cat has things it can do that AI cannot.
Fei-Fei Li
Python gained much of its recent prominence from its rich set of AI tools. In this chapter, I’ll include some AI history, as well as some recent developments. Given the insane speed of current AI development, some references will inevitably be eclipsed by brighter, shinier objects.
Traditional math lets you fit the best line or curve to a group of points by minimizing errors. But with AI problems, we’re looking for patterns that might have a complex multidimensional shape, with many local minima for errors. This is pattern recognition, and we really don’t understand how the model does it. Actually, we don’t understand how we do it either.
In this chapter, we’ll cover the following:
-
The recent history of AI, including insights that led to breakthroughs
-
Python’s role in AI development, from frameworks to full models
-
An overview of the most prominent current AI models
-
Some AI exercises using a real Python-based framework
First, let’s look at some definitions of terms that are often mushed together:
- Artificial intelligence (AI)
-
An old, ever-broadening term for machines mimicking human abilities
- Machine learning (ML)
-
A subset of AI, in which computers learn patterns from data without explicit human direction
- Deep learning (DL)
-
A subset of ML that uses multiple-layered neural networks
It Turns Out…
I’ve always liked the phrase “it turns out,” when a puzzling problem is followed by the solution. ...
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