How Machine Learning Works
Mostafa Samir Abd El-Fattah
  • MEAP began August 2019
  • Publication in Spring 2020 (estimated)
  • ISBN 9781617294884
  • 400 pages (estimated)
  • printed in black & white

A great base for getting started on Machine Learning theory and learning how to use Python tools to create models.

Elias Rangel
Many libraries and services treat machine learning like a black box—you just plug in your data and trust that the answer is correct. To really understand machine learning you need to know what’s going on inside the system. How Machine Learning Works is an introduction to core ML techniques and algorithms with a focus on understanding the underlying theory and mathematics. With this invaluable guide, you’ll acquire the competitive edge that comes from knowing what to do and why it works.
Table of Contents detailed table of contents

Part 0: Setting the Stage

1 The Traveling Diabetes Clinic: A first take at the problem

1.1 The Traveling Diabetes Clinic Problem

1.1.1 Reading the data with pandas

1.2 A Simple ML Attempt with scikit-learn

1.2.1 Choosing a Model

1.2.2 Implementing the Model with scikit-learn

1.2.3 Establishing a Baseline

2 Grokking the Problem: What does the data look like?

2.1 Populations and Samples

2.2 Descriptive Statistics

2.2.1 Mean, Mode, and Median

2.2.2 Ranges, Sample Variance, and Sample Standard Deviation

2.2.3 Histogram Plots

3 Grokking Deeper: Where did the data come from?

3.1 Probability and Distributions

3.1.1 Random Variables, Distributions, and their Properties

3.1.2 How to read math?

3.1.3 Expectation, Variance, and Estimations

3.2 Conditional Probability

3.2.1 The Bayes Rule

3.2.2 Independent Random Variables

3.3 Applying the Naive Bayes Model with scikit-learn

4 Setting the Stage

4.1 Generative and Discriminative Models

4.1.1 Generative Models

4.1.2 Discriminative Models and the Target Function

4.1.3 Which Is Better?

4.2 Types of Machine Learning Problems

Part 1: Similarity Based Methods

5 K-Nearest Neighbours Method

6 K-means Clustering

Part 2: Tree-Based Methods

7 Decision Trees

8 Hierarchical Clustering

Part 3: Linear Methods

9 Linear and Logistic Regression

10 Support Vector Machines

11 Principal Component Analysis

Part 4: Probabilistic Models

12 Naive Bayes Classifiers

13 Gaussian Mixture Models

14 Bayesian Optimization

Appendixes

Appendix A: .

A.1 Installing the Anaconda Distribution

A.1.1 Installing Anaconda for Linux-based OS (like Ubuntu)

A.1.2 Installing Anaconda for macOS

A.1.3 Installing Anaconda for Windows

A.2 Working with Jupyter Notebooks

A.2.1 Exploring a Jupyter Notebook

A.2.2 Markdown Cells

A.2.3 Code Cells

A.2.4 How does all this work?

About the Technology

Machine learning is the general term for a collection of data analysis techniques that accurately and efficiently identify patterns and relationships in data and then use those models to make predictions about new data. ML drives many features of modern applications, such as tailored product recommendations, social media feeds, forecasting consumer trends, customized therapy for people with developmental challenges, and other world-changing innovations. To understand, create, and apply new ML models you need both practical skills using ML tools and libraries and a deep understanding of the theory and math under the hood.

About the book

How Machine Learning Works gives you an in-depth look at the mathematical and theoretical foundations of machine learning. Seasoned practitioner Mostafa Samir Abd El-Fattah takes you step by step through a real-world ML projects. In it, you’ll learn the components that make up a machine learning problem and explore supervised and unsupervised learning. Blending theoretical foundations with practical ML skills, you’ll learn to read existing datasets using pandas, a fast and powerful Python library for data analysis and manipulation. Then, you’ll move on to choosing and implementing ML models with scikit-learn, a popular Python framework that provides a diverse range of ML models and algorithms.

Along the way, you’ll be practicing important math skills, including working with probability, random variables, mean, variance, vectors, matrices, linear algebra, and statistics. You’ll also discover similarity-based methods like K-nearest neighbor and K-means clustering; decision tree-based methods like classification and regression trees; and linear methods like regularization and logical regression. Instead of simply applying black-box methods and techniques to ML problems, you’ll grok their underlying structure and apply a robust mathematical understanding alongside your practical skills. By the end of this comprehensive guide, you’ll be able to comfortably explore and understand the latest ML research as well as identify and tackle novel ML problems!

What's inside

  • Understanding machine learning problems
  • A review of probability and statistics
  • Similarity-based, tree-based, and linear ML methods
  • Working with neural networks
  • An introduction to deep learning
  • Probabilistic models

About the reader

For programmers with basic Python skills, average math skills, and a keen interest in the fundamentals of machine learning.

About the author

Mostafa Samir Abd El-Fattah has a BSc. in Computer Science and is currently working as a Senior Machine Learning Research Engineer at Mawdoo3, with a focus on developing solutions for Arabic Natural Language Processing and Understanding (NLP & NLU). He also blogs about AI and ML his blog https://mostafa-samir.github.io.

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