Welcome to Manning India!

We are pleased to be able to offer regional eBook pricing for Indian residents.
All eBook prices are discounted 40% or more!
Grokking Machine Learning
Luis G. Serrano
  • MEAP began May 2019
  • Publication in April 2020 (estimated)
  • ISBN 9781617295911
  • 350 pages (estimated)
  • printed in black & white

Written in an approachable manner with great use of very illustrative and applicable examples.

Borko Djurkovic
It's time to dispel the myth that machine learning is difficult. Grokking Machine Learning teaches you how to apply ML to your projects using only standard Python code and high school-level math. No specialist knowledge is required to tackle the hands-on exercises using readily-available machine learning tools!
Table of Contents detailed table of contents

1 What is machine learning?

1.1 Why this book?

1.2 Is machine learning hard?

1.3 But what exactly is machine learning?

1.3.1 What is the difference between artificial intelligence and machine learning?

1.3.2 What about deep learning?

1.4 Humans use the remember-formulate-predict framework to make decisions (and so can machines!)

1.4.1 How do humans think?

1.4.2 How do machines think?

1.5 What is this book about?

1.6 Summary

2 Types of machine learning

2.1 What is the difference between labelled and unlabelled data?

2.2 What is supervised learning?

2.2.1 Regression models predict numbers

2.2.2 Classification models predict a state

2.3 What is unsupervised learning?

2.3.1 Clustering algorithms split a dataset into similar groups

2.3.2 Dimensionality reduction simplifies data without losing much information

2.3.3 Matrix factorization and other types of unsupervised learning

2.4. What is reinforcement learning?

2.5 Summary

3 Drawing a line close to our points: Linear regression

3.1 The problem: We need to predict the price of a house

3.2 The solution: Building a regression model for housing prices

3.2.1 The remember step: looking at the prices of existing houses

3.2.2 The formulate step: formulating a rule that estimates the price of the house

3.2.3 The predict step: what do we do when a new house comes in the market?

3.2.4 Some questions that arise and some quick answers

3.3 How to get the computer to draw this line: the linear regression algorithm

3.3.1 Crash course on slope and y-intercept

3.3.2 A simple trick to move a line closer to a set of points, one point at a time.

3.3.3 The square trick: A much more clever way of moving our line closer to one of the points

3.3.4 The linear regression algorithm: Repeating the square trick many times

3.3.5 Plotting dots and lines

3.3.6 Using the linear regression algorithm in our dataset

3.4 Applications of linear regression

3.4.1 Video and music recommendations

3.4.2 Product recommendations

3.4.3 Healthcare

3.5 Summary

4 Using lines to split our points: The perceptron algorithm

4.1 The problem: We are in an alien planet, and we don’t know their language!

4.1.1 A slightly more complicated planet

4.1.2 The bias, the y-intercept, and the inherent mood of a quiet alien

4.1.3 More general cases

4.2 How do we determine if a classifier is good or bad? The error function

4.2.1 How to compare classifiers? The error function

4.3 How to find a good classifier? The perceptron algorithm

4.3.1 The perceptron trick

4.4 Repeating the perceptron trick many times: The perceptron algorithm

4.5 Coding the perceptron algorithm

4.5.1 Coding the perceptron trick

4.6 Applications

4.6.1 Applications of the perceptron algorithm

4.7 Some drawbacks of the perceptron algorithm, which will be addressed very soon!

4.8 Summary

5 A continuous approach to splitting points: logistic regression

6 Using probability to its maximum: The naive Bayes algorithm

6.1 Sick or healthy? A story with Bayes Theorem

6.1.1 Prelude to Bayes Theorem: The prior, the event, and the posterior

6.2 Use-case: Spam detection model

6.2.1 Finding the prior: The probability that any email is spam

6.2.2 Finding the posterior: The probability that an email is spam knowing that it contains a particular word

6.2.3 What the math just happened? Turning ratios into probabilities

6.2.4 What about two words? The naive Bayes algorithm

6.2.5 What about more than two words?

6.3 Building a spam detection model with real data

6.3.1 Data preprocessing

6.3.2 Finding the priors

6.3.3 Finding the posteriors with Bayes theorem

6.3.4 Implementing the naive Bayes algorithm

6.3.5 Further work

6.4 Summary

7 Splitting data by asking questions: Decision trees

7.1 The problem: We need to recommend apps to users according to what they are likely to download

7.2 The solution: Building an app recommendation system

7.2.1 The remember-formulate-predict framework

7.2.2 First step to build the model: Asking the best question

7.2.3 Next and final step: Iterate by asking the best question every time

7.2.4 Using the model by making predictions

7.3 Building the tree: How to pick the right feature to split

7.3.1 How to pick the best feature to split our data: Accuracy

7.3.2 How to pick the best feature to split our data: Gini impurity

7.4 Back to recommending apps: Building our decision tree using Gini index

7.5 Beyond questions like yes/no

7.5.1 Features with more categories, such as Dog/Cat/Bird

7.5.2 7.5.2 Continuous features, such as a number

7.6 Coding a decision tree with sklearn

7.7 A slightly larger example: Spam detection again!

7.8 Applications

7.8.1 Decision trees are widely used in health care

7.8.2 Decision trees are useful in recommendation systems

7.9 Summary

8 Combining building blocks to gain more power: neural networks

9 Finding the best line separation: support vector machines

10 Combining models to maximize results: ensemble learning

10.1 With a little help from our friends

10.2 Why an ensemble of learners? Why not just one really good learner?

10.3 Bagging - Joining some classifiers together to build a stronger classifier

10.3.1 Building random forests by joining several trees

10.3.2 Coding a random forest in sklearn

10.4 Boosting - Joining some classifiers together in a smarter way to get a stronger classifier

10.4.1 A big picture of AdaBoost

10.4.2 A detailed (mathematical) picture of AdaBoost

10.4.3 Coding AdaBoost in Sklearn

10.5 Applications of ensemble methods

10.6 Summary

Appendixes

Appendix A: The math behind the algorithms

About the Technology

Machine learning is a collection of mathematically-based techniques and algorithms that enable computers to identify patterns and generate predictions from data. This revolutionary data analysis approach is behind everything from recommendation systems to self-driving cars, and is transforming industries from finance to art. Whatever your field, knowledge of machine learning is becoming an essential skill. Python, along with its libraries like NumPy, Pandas, and scikit-learn, has become the go-to language for machine learning.

About the book

In Grokking Machine Learning, expert machine learning engineer Luis Serrano introduces the most valuable ML techniques and teaches you how to make them work for you. You’ll only need high school math to dive into popular approaches and algorithms. Practical examples illustrate each new concept to ensure you’re grokking as you go. You’ll build models for spam detection, language analysis, and image recognition as you lock in each carefully-selected skill. Packed with easy-to-follow Python-based exercises and mini-projects, this book sets you on the path to becoming a machine learning expert. When you’re done, you’ll have an intuitive understanding of the right approach for any machine learning task or project.

What's inside

  • Different types of machine learning, including supervised and unsupervised learning
  • Algorithms for simplifying, classifying, and splitting data
  • Machine learning packages and tools
  • Hands-on exercises with fully-explained Python code samples

About the reader

For readers with intermediate programming knowledge in Python or a similar language. No machine learning experience or advanced math skills necessary.

About the author

Luis G. Serrano has worked as the Head of Content for Artificial Intelligence at Udacity and as a Machine Learning Engineer at Google, where he worked on the YouTube recommendations system. He holds a PhD in mathematics from the University of Michigan, a Bachelor and Masters from the University of Waterloo, and worked as a postdoctoral researcher at the University of Quebec at Montreal. He shares his machine learning expertise on a YouTube channel with over 2 million views and 35 thousand subscribers, and is a frequent speaker at artificial intelligence and data science conferences.

Manning Early Access Program (MEAP) Read chapters as they are written, get the finished eBook as soon as it’s ready, and receive the pBook long before it's in bookstores.
MEAP combo $49.99 pBook + eBook + liveBook
MEAP eBook $39.99 pdf + ePub + kindle + liveBook
Prices displayed in rupees will be charged in USD when you check out.

placing your order...

Don't refresh or navigate away from the page.

FREE domestic shipping on three or more pBooks