Skip to content

cosmic-cortex/mathematics-of-machine-learning-book

Repository files navigation

Mathematics of Machine Learning

This is the code repository for Mathematics of Machine Learning, published by Packt.

Master linear algebra, calculus, and probability for machine learning

Tivadar Danka

      Graphic Bundle       Amazon      

About the book

Mathematics of Machine Learning provides a rigorous yet accessible introduction to the mathematical underpinnings of machine learning, designed for engineers, developers, and data scientists ready to elevate their technical expertise. With this book, you’ll explore the core disciplines of linear algebra, calculus, and probability theory essential for mastering advanced machine learning concepts.

PhD mathematician turned ML engineer Tivadar Danka—known for his intuitive teaching style that has attracted 100k+ followers—guides you through complex concepts with clarity, providing the structured guidance you need to deepen your theoretical knowledge and enhance your ability to solve complex machine learning problems. Balancing theory with application, this book offers clear explanations of mathematical constructs and their direct relevance to machine learning tasks. Through practical Python examples, you’ll learn to implement and use these ideas in real-world scenarios, such as training machine learning models with gradient descent or working with vectors, matrices, and tensors.

By the end of this book, you’ll have gained the confidence to engage with advanced machine learning literature and tailor algorithms to meet specific project requirements.

Key Learnings

  • Understand core concepts of linear algebra, including matrices, eigenvalues, and decompositions
  • Grasp fundamental principles of calculus, including differentiation and integration
  • Explore advanced topics in multivariable calculus for optimization in high dimensions
  • Master essential probability concepts like distributions, Bayes' theorem, and entropy
  • Bring mathematical ideas to life through Python-based implementations

Chapters

Chapters Colab Kaggle Gradient Studio Lab
Part 1: Linear Algebra
  • Chapter 1, Vectors and Vector Spaces
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 2, The Geometric Structure of Vector Spaces
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 3, Linear Algebra in Practice
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 5, Matrices and Equations
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 7, Matrix Factorizations
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
Part 2: Calculus
  • Chapter 9, Functions
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 10, Numbers, Sequences, and Series
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 12, Differentiation
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 13, Optimization
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 14, Integration
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
Part 3: Multivariable Calculus
  • Chapter 17, Optimization in Multiple Variables
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
Part 4: Probability Theory
  • Chapter 18, What is Probability
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 19, Random Variables and Distributions
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab
  • Chapter 20, The Expected Value
Open In Colab
Open In Kaggle
Open In Gradient
Open In Studio Lab

Requirements for this book

You can run these Jupyter notebooks on remotely on cloud platforms like Google Colab, or locally on your machine. If you decide to run them virtually, you should create a virtual environment first:

virtualenv .venv

After the enviromnment is created, activate it and install the required Python packages.

source .venv/bin/activate
pip install -r requirements.txt

Get to know Author

Tivadar Danka is a mathematician by training, a machine learning engineer by profession, and an educator by passion. After finishing his PhD in 2016 (about the arcane subject of orthogonal polynomials), he switched career paths and has been working in machine learning ever since. His work includes applying deep learning to cell microscopy images to identify and phenotype cells, creating one of the most popular open source Python packages for active learning, building a full machine learning library from scratch, and collecting about a total of 100k followers on social media, all by posting high-quality educational content.

Other Related Books

About

The official GitHub repository for the Mathematics of Machine Learning book!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published