Overview

1 What is machine learning? It is common sense, except done by a computer

Machine learning enables computers to make decisions by learning from data, much as people draw on experience. It is a branch of artificial intelligence, while deep learning—a field using neural networks—is part of machine learning. The chapter presents the subject as approachable: clear examples and visual intuition can make its ideas understandable without advanced math or programming expertise.

A central pattern is to remember relevant examples, formulate a general rule, and use that rule to predict what may happen. In machine learning, data provides the examples, an algorithm is the set of steps used to build a model, and the model is the rule or representation used to make predictions. Features—properties of the data, such as an email’s size or when it was sent—help a model distinguish outcomes, as in spam detection. A useful model should not merely fit known examples; it should also generalize to new ones.

Computers can rapidly test many rules and combinations of features to find models, supporting tasks such as recommendations, image recognition, medical diagnosis, and spam filtering. Most of the book focuses on predictive machine learning, which classifies items or estimates values. Generative machine learning goes further by creating new material, such as text or images; it is more challenging, much like composing an essay is harder than answering a multiple-choice question.

Machine learning is a part of AI.
Machine learning is a part of AI.
Machine learning encompasses tasks in which computers make decisions based on data, much as humans make decisions based on past experiences.
Machine learning encompasses tasks in which computers make decisions based on data, much as humans make decisions based on past experiences.
Deep learning is a part of machine learning.
Deep learning is a part of machine learning.
The remember-formulate-predict framework is the main one we use in this book. It consists of three steps: (1) we remember previous data, (2) we formulate a general rule, and (3) we use that rule to make predictions.
The remember-formulate-predict framework is the main one we use in this book. It consists of three steps: (1) we remember previous data, (2) we formulate a general rule, and (3) we use that rule to make predictions.
A very simple machine learning model
A very simple machine learning model
A slightly more complex machine learning model
A slightly more complex machine learning model
Another slightly more complex machine learning model
Another slightly more complex machine learning model
An even more complex machine learning model
An even more complex machine learning model
● Figure 1.9 A much more complex machine learning model found by a computer
● Figure 1.9 A much more complex machine learning model found by a computer
Predictive machine learning is akin to answering multiple-choice questions. Generative machine learning is akin to writing an essay or drawing an image.
Predictive machine learning is akin to answering multiple-choice questions. Generative machine learning is akin to writing an essay or drawing an image.

Summary

  • Machine learning is easy! Anyone can learn it and use it, regardless of their background. All that is needed is a desire to learn and great ideas to implement.
  • Machine learning is tremendously useful and is used in most disciplines. From science and technology to social problems and medicine, machine learning is making a difference and will continue to do so.
  • Machine learning is common sense put to work by a computer. It mimics how humans think to make decisions quickly and accurately.
  • Just as humans make decisions based on experience, computers can make decisions based on previous data. This is what machine learning is all about.
  • Machine learning uses the remember-formulate-predict framework:
  • - Remember: Look at the previous data.
  • - Formulate: Build a model or a rule based on this data.
  • - Predict: Use the model to make predictions about future data.
  • Predictive machine learning answers questions, and generative machine learning creates new content, such as text and images.

FAQ

What is machine learning?Machine learning is a part of artificial intelligence in which computers make decisions based on data. It uses patterns in past data to make predictions or solve problems.
How is machine learning different from artificial intelligence?Artificial intelligence is the broader set of tasks in which a computer makes decisions. Machine learning is one part of AI: it refers specifically to decisions made using data.
Do I need a strong background in math or programming to learn machine learning?No. Some basic math and coding are useful, but you don’t need to be an expert to get started. The chapter emphasizes common sense, creativity, and visual intuition, and introduces math and code step by step.
How does the chapter describe the relationship between AI, machine learning, and deep learning?Deep learning is a part of machine learning, and machine learning is a part of AI. Deep learning specifically uses neural networks.
What is the remember-formulate-predict framework?It is a three-step way to make decisions from experience: remember relevant past situations, formulate a general rule from them, and use that rule to predict what may happen next.
What is the difference between a machine learning model and an algorithm?A model is a set of rules that represents data and can be used to make predictions. An algorithm is the set of steps used to build that model.
What is a feature in machine learning?A feature is a property or characteristic of the data that a model can use to make predictions. For an email spam model, examples include the email’s size, the day it was sent, and the words it contains.
How does a computer learn to recognize something like spam or an apple in an image?It is given examples along with information about what they contain—for instance, emails labeled spam or ham, or images labeled as containing an apple. The computer uses those examples to find patterns and apply them to new data.
What makes a machine learning model good?A useful model should not only fit the data it has already seen; it should also generalize well to new data. The chapter notes that finding the best model is a central challenge in machine learning.
How is generative machine learning different from predictive machine learning?Predictive machine learning answers questions, such as classifying an email or estimating a number. Generative machine learning creates new content, such as text or images, which is more like answering an essay question than choosing from multiple options.

pro $24.99 per month

  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose one free eBook per month to keep
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime

lite $19.99 per month

  • access to all Manning books, including MEAPs!

team

5, 10 or 20 seats+ for your team - learn more


Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking Machine Learning, Second Edition Grokking Machine Learning, Second Edition ebook for free
Close
choose your plan

team

monthly
annual
$49.99
$499.99
only $41.67 per month
  • five seats for your team
  • access to all Manning books, MEAPs, liveVideos, liveProjects, and audiobooks!
  • choose another free product every time you renew
  • choose twelve free products per year
  • exclusive 50% discount on all purchases
  • renews monthly, pause or cancel renewal anytime
  • renews annually, pause or cancel renewal anytime
  • Grokking Machine Learning, Second Edition Grokking Machine Learning, Second Edition ebook for free