The Art of Machine Learning

A Hands-On Guide to Machine Learning with R

Look inside
Paperback
$49.99 US
On sale Jan 09, 2024 | 272 Pages | 9781718502109

See Additional Formats
Learn to expertly apply a range of machine learning methods to real data with this practical guide.

Packed with real datasets and practical examples, The Art of Machine Learning will help you develop an intuitive understanding of how and why ML methods work, without the need for advanced math.

As you work through the book, you’ll learn how to implement a range of powerful ML techniques, starting with the k-Nearest Neighbors (k-NN) method and random forests, and moving on to gradient boosting, support vector machines (SVMs), neural networks, and more.

With the aid of real datasets, you’ll delve into regression models through the use of a bike-sharing dataset, explore decision trees by leveraging New York City taxi data, and dissect parametric methods with baseball player stats. You’ll also find expert tips for avoiding common problems, like handling “dirty” or unbalanced data, and how to troubleshoot pitfalls.

You’ll also explore:

  • How to deal with large datasets and techniques for dimension reduction
  • Details on how the Bias-Variance Trade-off plays out in specific ML methods
  • Models based on linear relationships, including ridge and LASSO regression
  • Real-world image and text classification and how to handle time series data

Machine learning is an art that requires careful tuning and tweaking. With The Art of Machine Learning as your guide, you’ll master the underlying principles of ML that will empower you to effectively use these models, rather than simply provide a few stock actions with limited practical use.

Requirements: A basic understanding of graphs and charts and familiarity with the R programming language
Acknowledgments
Introduction

PART I: PROLOGUE, AND NEIGHBORHOOD-BASED METHODS
Chapter 1: Regression Models
Chapter 2: Classification Models
Chapter 3: Bias, Variance, Overfitting, and Cross-Validation
Chapter 4: Dealing with Large Numbers of Features
PART II: TREE-BASED METHODS
Chapter 5: A Step Beyond k-NN: Decision Trees
Chapter 6: Tweaking the Trees
Chapter 7: Finding a Good Set of Hyperparameters
PART III: METHODS BASED ON LINEAR RELATIONSHIPS
Chapter 8: Parametric Methods
Chapter 9: Cutting Things Down to Size: Regularization
PART IV: METHODS BASED ON SEPARATING LINES AND PLANES
Chapter 10: A Boundary Approach: Support Vector Machines
Chapter 11: Linear Models on Steroids: Neural Networks
PART V: APPLICATIONS
Chapter 12: Image Classification 
Chapter 13: Handling Time Series and Text Data 
Appendix A: List of Acronyms and Symbols 
Appendix B: Statistics and ML Terminology Correspondence
Appendix C: Matrices, Data Frames, and Factor Conversions
Appendix D: Pitfall: Beware of “p-Hacking”!
Norman Matloff is an award-winning professor at the University of California, Davis. Matloff has a PhD in mathematics from UCLA and is the author of The Art of Debugging with GDB, DDD, and Eclipse and The Art of R Programming (both from No Starch Press).

About

Learn to expertly apply a range of machine learning methods to real data with this practical guide.

Packed with real datasets and practical examples, The Art of Machine Learning will help you develop an intuitive understanding of how and why ML methods work, without the need for advanced math.

As you work through the book, you’ll learn how to implement a range of powerful ML techniques, starting with the k-Nearest Neighbors (k-NN) method and random forests, and moving on to gradient boosting, support vector machines (SVMs), neural networks, and more.

With the aid of real datasets, you’ll delve into regression models through the use of a bike-sharing dataset, explore decision trees by leveraging New York City taxi data, and dissect parametric methods with baseball player stats. You’ll also find expert tips for avoiding common problems, like handling “dirty” or unbalanced data, and how to troubleshoot pitfalls.

You’ll also explore:

  • How to deal with large datasets and techniques for dimension reduction
  • Details on how the Bias-Variance Trade-off plays out in specific ML methods
  • Models based on linear relationships, including ridge and LASSO regression
  • Real-world image and text classification and how to handle time series data

Machine learning is an art that requires careful tuning and tweaking. With The Art of Machine Learning as your guide, you’ll master the underlying principles of ML that will empower you to effectively use these models, rather than simply provide a few stock actions with limited practical use.

Requirements: A basic understanding of graphs and charts and familiarity with the R programming language

Table of Contents

Acknowledgments
Introduction

PART I: PROLOGUE, AND NEIGHBORHOOD-BASED METHODS
Chapter 1: Regression Models
Chapter 2: Classification Models
Chapter 3: Bias, Variance, Overfitting, and Cross-Validation
Chapter 4: Dealing with Large Numbers of Features
PART II: TREE-BASED METHODS
Chapter 5: A Step Beyond k-NN: Decision Trees
Chapter 6: Tweaking the Trees
Chapter 7: Finding a Good Set of Hyperparameters
PART III: METHODS BASED ON LINEAR RELATIONSHIPS
Chapter 8: Parametric Methods
Chapter 9: Cutting Things Down to Size: Regularization
PART IV: METHODS BASED ON SEPARATING LINES AND PLANES
Chapter 10: A Boundary Approach: Support Vector Machines
Chapter 11: Linear Models on Steroids: Neural Networks
PART V: APPLICATIONS
Chapter 12: Image Classification 
Chapter 13: Handling Time Series and Text Data 
Appendix A: List of Acronyms and Symbols 
Appendix B: Statistics and ML Terminology Correspondence
Appendix C: Matrices, Data Frames, and Factor Conversions
Appendix D: Pitfall: Beware of “p-Hacking”!

Author

Norman Matloff is an award-winning professor at the University of California, Davis. Matloff has a PhD in mathematics from UCLA and is the author of The Art of Debugging with GDB, DDD, and Eclipse and The Art of R Programming (both from No Starch Press).

Books for National Depression Education and Awareness Month

For National Depression Education and Awareness Month in October, we are sharing a collection of titles that educates and informs on depression, including personal stories from those who have experienced depression and topics that range from causes and symptoms of depression to how to develop coping mechanisms to battle depression.

Read more

Horror Titles for the Halloween Season

In celebration of the Halloween season, we are sharing horror books that are aligned with the themes of the holiday: the sometimes unknown and scary creatures and witches. From classic ghost stories and popular novels that are celebrated today, in literature courses and beyond, to contemporary stories about the monsters that hide in the dark, our list

Read more

Books for LGBTQIA+ History Month

For LGBTQIA+ History Month in October, we’re celebrating the shared history of individuals within the community and the importance of the activists who have fought for their rights and the rights of others. We acknowledge the varying and diverse experiences within the LGBTQIA+ community that have shaped history and have led the way for those

Read more