Programming Machine Learning (Pragmatic Bookshelf)

PragmaticBookshelf
Machine learning can be intimidating, with its reliance on math and algorithms that most programmers don't encounter in their regular work. The good news is that it doesn't have to be that hard. Take a hands-on approach, writing the Python code yourself, without any libraries to obscure what's really going on. Iterate on your design, and add layers of complexity as you go.

Paolo Perrotta @nusco

edited by Katharine Dvorak @katied

Machine learning can be intimidating, with its reliance on math and algorithms that most programmers don’t encounter in their regular work. The good news is that it doesn’t have to be that hard. Take a hands-on approach, writing the Python code yourself, without any libraries to obscure what’s really going on. Iterate on your design, and add layers of complexity as you go.

Build an image recognition application from scratch with supervised learning. Predict the future with linear regression. Dive into gradient descent, a fundamental algorithm that drives most of machine learning. Create perceptrons to classify data. Build neural networks to tackle more complex and sophisticated data sets. Train and refine those networks with backpropagation and batching. Layer the neural networks, eliminate overfitting, and add convolution to transform your neural network into a true deep learning system.

Start from the beginning and code your way to machine learning mastery.


“Let me say that I think this is a brilliant book. It takes the reader step by step through the thinking behind machine learning. Combine that with Paolo’s fun approach and this is the book I’d suggest every machine learning neophyte start with.”

Russ Olsen, Author, Getting Clojure and Eloquent Ruby


  • Full details: Search
  • View this book’s portal and details on how to post errata and suggestions here.

Don’t forget you can get 35% off with your Devtalk discount! Just use the coupon code “devtalk.com" at checkout :+1:

Latest Threads About This Book Top

HofmT
Hello, I think there is a typo in the formula for the gradient of the mean squared error. Shouldn’t it be x with index i like it is in t...
New
nusco
To readers of “Programming Machine Learning”: the code in the book runs on old-ish versions of Python and its libraries. If you have trou...
New
tihnessa
When I try to run the code multiple_regression_without_bias.py from page 58 of the book, I get the following error: File “[path snipped]...
New
mscdit
Hi @nusco, I have a question regarding the dimension numbers of the matrices shown in the picture on page 118. What I am currently strug...
New
roadbike
From page 13: On Python 3.7, you can install the libraries with pip by running these commands inside a Python venv using Visual Studio ...
New
kai
@nusco Programming Machine Learning From Coding to Deep Learning German edition Chapter 11 Training the network Page 191 def back(...
New
wasshuber
Does anybody have benchmark results on what accuracy is achievable on the MNIST data with a multilayer network? I am particularly interes...
New
arohl
Title: Name of book: description (page number) Example: Programming Flutter - ‘pub get’ command not working (page 15) I needed to chang...
New
wasshuber
I encountered something that I can’t explain. Any help, tips, or explanations would be great. I followed the one hidden layer example wi...
New
wasshuber
Tip: If you are on a slow or old machine like me, or if you want to run many different examples to explore the design space you can speed...
New

Most Active This Week Top

Most Active This Month Top

Most Active This Year Top

nusco
To readers of “Programming Machine Learning”: the code in the book runs on old-ish versions of Python and its libraries. If you have trou...
New
tihnessa
When I try to run the code multiple_regression_without_bias.py from page 58 of the book, I get the following error: File “[path snipped]...
New
HofmT
Hello, I think there is a typo in the formula for the gradient of the mean squared error. Shouldn’t it be x with index i like it is in t...
New

Most Active Last Three Years Top

PragmaticBookshelf
Machine learning can be intimidating, with its reliance on math and algorithms that most programmers don't encounter in their regular wor...
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New
Alexandr
Hi everyone! There is an error on the page 71 in the book “Programming machine learning from coding to depp learning” P. Perrotta. You c...
New
roadbike
From page 13: On Python 3.7, you can install the libraries with pip by running these commands inside a Python venv using Visual Studio ...
New
jert47
Title: Programming ML (page 200) - installing keras 2.3.1 doesn’t install TensorFlow, as the book suggests.
New
ggerico
if someone can help me to understand how to calculate the derivative: 2/m xi ((wxi + b) - yi) I thought it was: 2/m ((wxi + b) - yi) ...
New
arohl
Title: Name of book: description (page number) Example: Programming Flutter - ‘pub get’ command not working (page 15) I needed to chang...
New
kai
@nusco Programming Machine Learning From Coding to Deep Learning German edition Chapter 11 Training the network Page 191 def back(...
New
wasshuber
Tip: If you are on a slow or old machine like me, or if you want to run many different examples to explore the design space you can speed...
New
wasshuber
Does anybody have benchmark results on what accuracy is achievable on the MNIST data with a multilayer network? I am particularly interes...
New
wasshuber
I encountered something that I can’t explain. Any help, tips, or explanations would be great. I followed the one hidden layer example wi...
New
mscdit
Hi @nusco, I have a question regarding the dimension numbers of the matrices shown in the picture on page 118. What I am currently strug...
New

Most Active Over Three Years Top

New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
New
Margaret
Paulo @nusco is working on some updates to Programming Machine Learning #book-programming-machine-learning, so if you have any feedback f...
New
HofmT
Hello, I’m not entirley sure if this is an errata but the third paragraph in chapter 2 starts with: “However simple linear regression is...
New
RichardMurnane
Hi Paolo, thanks for what looks like a great book on this topic. Looking forward to no longer being an ML “noob”. Just a minor error: o...
New
samuiweb_gm
Hi there, bought “Programming Machine Learning” (great book) from pragprog. A question (from a newbie) for the author, or anyone can he...
New

Book Info

Publisher: Pragmatic Bookshelf

Are you this book's author? To be notified of all posts made about it, sign up an account then click here, then select 'watching' from the bell icon in the top right corner.

Get money off!

The Pragmatic Bookshelf

35% off any eBook

Simply use coupon code "devtalk.com" at checkout. See full details here.