Overview

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

This chapter opens by demystifying machine learning as computers doing common-sense decision-making with data. It emphasizes that you don’t need heavy math or nonstop coding to get started—visual intuition, curiosity, and basic numeracy go a long way. The author highlights how ML now permeates everyday products and services thanks to abundant data and computing power, and sets an encouraging tone: the book will build understanding incrementally, using examples first and formulas/code as the “language” that clarifies them.

The text distinguishes artificial intelligence (computers making decisions) from machine learning (decisions from data), and then positions deep learning as a high-performing subset that uses neural networks. Using human reasoning as a guide, ML is framed as learning from experience—like recognizing apples by seeing many labeled examples—rather than hand-coding brittle rules. This shift from explicit instructions to pattern-finding in data is presented as a pivotal advance that enables computers to handle tasks too complex for traditional programming.

The core thinking process is the remember–formulate–predict framework: recall relevant data, distill it into a rule (a model), and use it to make predictions. The chapter defines models (rules that represent data) and algorithms (procedures that build models), and introduces features as the properties models rely on. A series of spam/ham examples shows how simple rules (frequency, weekday/weekend, message size) evolve into richer, multi-feature criteria, and how computers can efficiently search many candidate rules to find ones that fit data and generalize. Finally, it contrasts predictive ML (classification/regression) with generative ML (creating text or images), noting the book focuses on predictive methods while preparing readers for generative techniques later.

Machine learning is a part of artificial intelligence.
Machine learning encompasses all the tasks in which computers make decisions based on data. In the same way that humans make decisions based on previous experiences, computers can make decisions based on previous data.
Deep learning is a part of machine learning.
The remember-formulate-predict framework is the main framework 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 about the future.
A very simple machine learning model
A slightly more complex machine learning model
Another slightly more complex machine learning model
An even more complex machine learning model
A much more complex machine learning model, found by a computer
Predictive machine learning is akin to answering questions, such as multiple choice. Generative 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 it is used in most disciplines. From science to technology to social problems and medicine, machine learning is making an impact and will continue doing so.
  • Machine learning is common sense, done by a computer. It mimics the ways humans think to make decisions quickly and accurately.
  • Just like 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, as follows:

  • 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.

FAQ

What is machine learning in simple terms?It’s a way for computers to make decisions using data. Like people learn from past experiences, ML systems learn patterns from examples and use those patterns to make predictions on new, unseen cases.
How is machine learning different from artificial intelligence?Artificial intelligence is the broad goal of getting computers to make decisions. Machine learning is a subset of AI that focuses specifically on learning from data to make those decisions.
What is deep learning and how does it relate to ML?Deep learning is a subfield of machine learning that uses neural networks. It has driven many recent breakthroughs (for example, in vision and language) because it can model very complex patterns when given enough data and compute.
Do I need advanced math or coding skills to learn ML?No. Basic math helps, and coding can range from minimal to extensive depending on your role. Curiosity, visual intuition, and common sense go a long way; many tools and libraries lower the coding barrier.
Where do we see machine learning in everyday life?Examples include recommendations, image and speech recognition, language processing, email spam filters, medical support systems, navigation and routing, and autonomous driving—anywhere data can guide decisions.
What is the remember–formulate–predict framework?It mirrors how humans use experience: 1) remember past data, 2) formulate a general rule from it, and 3) predict future outcomes using that rule. ML systems follow the same flow to learn from data and make predictions.
What is a model? What is an algorithm?A model is the set of rules or relationships learned from data that we use to make predictions. An algorithm is the procedure (the steps) used to build or fit that model from data.
What are features, and why do they matter?Features are measurable properties of the data that a model uses to predict (for example, email size, day of week, keyword counts). Good features capture signal about the outcome and often determine how well a model performs.
How does a computer build and select a good model?It searches across many possible rules and formulas, fits them to training data, and evaluates how well they generalize. The “best” model is the one that fits existing data while also making accurate predictions on new data.
How do predictive and generative machine learning differ?Predictive ML answers questions with labels or numbers (classification and regression). Generative ML creates new content—such as text or images—based on what it has learned. Generative tasks are typically harder and build on many predictive ML ideas.

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


choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 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 ebook for free
choose your plan

team

monthly
annual
$49.99
$399.99
only $33.33 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 ebook for free