liveBook · Manning

What you will learn in Grokking Machine Learning

by Luis Serrano

Chapter by chapter

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

1.1 Do I need a heavy math and coding background to understand machine learning? · 1.2 OK, so what exactly is machine learning? · 1.3 How do we get machines to make decisions with data? The remember-formulate-predict framework · 1.4 Summary

What you learn in chapter 1 →

Chapter 2: Types of machine learning

2.1 What is the difference between labeled and unlabeled data? · 2.2 Supervised learning: The branch of machine learning that works with labeled data · 2.3 Unsupervised learning: The branch of machine learning that works with unlabeled data · 2.4 What is reinforcement learning? · 2.5 Summary · 2.6 Exercises

What you learn in chapter 2 →

Chapter 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.3 How to get the computer to draw this line: The linear regression algorithm · 3.4 How do we measure our results? The error function · 3.5 Real-life application: Using Turi Create to predict housing prices in India · 3.6 What if the data is not in a line? Polynomial regression · 3.7 Parameters and hyperparameters · 3.8 Applications of regression · 3.9 Summary · 3.10 Exercises

What you learn in chapter 3 →

Chapter 4: Optimizing the training process: Underfitting, overfitting, testing, and regularization

4.1 An example of underfitting and overfitting using polynomial regression · 4.2 How do we get the computer to pick the right model? By testing · 4.3 Where did we break the golden rule, and how do we fix it? The validation set · 4.4 A numerical way to decide how complex our model should be: The model complexity graph · 4.5 Another alternative to avoiding overfitting: Regularization · 4.6 Polynomial regression, testing, and regularization with Turi Create · 4.7 Summary · 4.8 Exercises

What you learn in chapter 4 →

Chapter 5: Using lines to split our points: The perceptron algorithm

5.1 The problem: We are on an alien planet, and we don’t know their language! · 5.2 How do we determine whether a classifier is good or bad? The error function · 5.3 How to find a good classifier? The perceptron algorithm · 5.4 Coding the perceptron algorithm · 5.5 Applications of the perceptron algorithm · 5.6 Summary · 5.7 Exercises

What you learn in chapter 5 →

Chapter 6: A continuous approach to splitting points: Logistic classifiers

6.1 Logistic classifiers: A continuous version of perceptron classifiers · 6.2 How to find a good logistic classifier? The logistic regression algorithm · 6.3 Coding the logistic regression algorithm · 6.4 Real-life application: Classifying IMDB reviews with Turi Create · 6.5 Classifying into multiple classes: The softmax function · 6.6 Summary · 6.7 Exercises

What you learn in chapter 6 →

Chapter 7: How do you measure classification models? Accuracy and its friends

7.1 Accuracy: How often is my model correct? · 7.2 How to fix the accuracy problem? Defining different types of errors and how to measure them · 7.3 A useful tool to evaluate our model: The receiver operating characteristic (ROC) curve · 7.4 Summary · 7.5 Exercises

What you learn in chapter 7 →

Chapter 8: Using probability to its maximum: The naive Bayes model

8.1 Sick or healthy? A story with Bayes’ theorem as the hero · 8.2 Use case: Spam-detection model · 8.3 Building a spam-detection model with real data · 8.4 Summary · 8.5 Exercises

What you learn in chapter 8 →

Chapter 9: Splitting data by asking questions: Decision trees

9.1 The problem: We need to recommend apps to users according to what they are likely to download · 9.2 The solution: Building an app-recommendation system · 9.3 Beyond questions like yes/no · 9.4 The graphical boundary of decision trees · 9.5 Real-life application: Modeling student admissions with Scikit-Learn · 9.6 Decision trees for regression · 9.7 Applications · 9.8 Summary · 9.9 Exercises

What you learn in chapter 9 →

Chapter 10: Combining building blocks to gain more power: Neural networks

10.1 Neural networks with an example: A more complicated alien planet · 10.2 Training neural networks · 10.3 Coding neural networks in Keras · 10.4 Neural networks for regression · 10.5 Other architectures for more complex datasets · 10.6 Summary · 10.7 Exercises

What you learn in chapter 10 →

Chapter 11: Finding boundaries with style: Support vector machines and the kernel method

11.1 Using a new error function to build better classifiers · 11.2 Coding support vector machines in Scikit-Learn · 11.3 Training SVMs with nonlinear boundaries: The kernel method · 11.4 Summary · 11.5 Exercises

What you learn in chapter 11 →

Chapter 12: Combining models to maximize results: Ensemble learning

12.1 With a little help from our friends · 12.2 Bagging: Joining some weak learners randomly to build a strong learner · 12.3 AdaBoost: Joining weak learners in a clever way to build a strong learner · 12.4 Gradient boosting: Using decision trees to build strong learners · 12.5 XGBoost: An extreme way to do gradient boosting · 12.6 Applications of ensemble methods · 12.7 Summary · 12.8 Exercises

What you learn in chapter 12 →

Chapter 13: Putting it all in practice: A real-life example of data engineering and machine learning

13.1 The Titanic dataset · 13.2 Cleaning up our dataset: Missing values and how to deal with them · 13.3 Feature engineering: Transforming the features in our dataset before training the models · 13.4 Training our models · 13.5 Tuning the hyperparameters to find the best model: Grid search · 13.6 Using K-fold cross-validation to reuse our data as training and validation · 13.7 Summary · 13.8 Exercises

What you learn in chapter 13 →

Concepts explained in this book

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.