Skip to Main Content
Programming Machine Learning
book

Programming Machine Learning

by Paolo Perrotta
March 2020
Beginner to intermediate content levelBeginner to intermediate
342 pages
8h 38m
English
Pragmatic Bookshelf
Content preview from Programming Machine Learning

Matrix Math

To upgrade our system to multiple variables, you’ll need to know about two operations on matrices. I don’t want to introduce those operations at the last moment, while we’re busy coding. Instead, we’ll take a few pages to get them out of the way now.

A matrix is a bi-dimensional array. For example, here is a (4, 3) matrix, meaning that it has four rows and three columns:

images/hyperspace/matrix.png

The two operations that we’ll cover are matrix multiplication and matrix transpose. Both are ubiquitous in ML, and each deserves its own section.

Multiplying Matrices

Did you ever wonder why ML is usually done on those big racks of GPUs? That’s because ML systems spend ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Mastering Machine Learning Algorithms - Second Edition

Mastering Machine Learning Algorithms - Second Edition

Giuseppe Bonaccorso
Practical Machine Learning for Computer Vision

Practical Machine Learning for Computer Vision

Valliappa Lakshmanan, Martin Görner, Ryan Gillard

Publisher Resources

ISBN: 9781680507706Errata Page