Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Mathematical Foundations of Machine Learning
Bestseller
Highest Rated
Rating: 4.5 out of 5(8,436 ratings)
142,076 students

Mathematical Foundations of Machine Learning

Essential Linear Algebra and Calculus Hands-On in NumPy, TensorFlow, and PyTorch
Last updated 11/2024
English

What you'll learn

  • Understand the fundamentals of linear algebra and calculus, critical mathematical subjects underlying all of machine learning and data science
  • Manipulate tensors using all three of the most important Python tensor libraries: NumPy, TensorFlow, and PyTorch
  • How to apply all of the essential vector and matrix operations for machine learning and data science
  • Reduce the dimensionality of complex data to the most informative elements with eigenvectors, SVD, and PCA
  • Solve for unknowns with both simple techniques (e.g., elimination) and advanced techniques (e.g., pseudoinversion)
  • Appreciate how calculus works, from first principles, via interactive code demos in Python
  • Intimately understand advanced differentiation rules like the chain rule
  • Compute the partial derivatives of machine-learning cost functions by hand as well as with TensorFlow and PyTorch
  • Grasp exactly what gradients are and appreciate why they are essential for enabling ML via gradient descent
  • Use integral calculus to determine the area under any given curve
  • Be able to more intimately grasp the details of cutting-edge machine learning papers
  • Develop an understanding of what’s going on beneath the hood of machine learning algorithms, including those used for deep learning

Course content

11 sections114 lectures16h 25m total length
  • Introduction1:48

    This is a warm welcome to the Mathematical Foundations of Machine Learning series of interactive video tutorials. It provides an overview of the Linear Algebra, Calculus, Probability, Stats, and Computer Science that we'll cover in the series and that together make a complete machine learning practitioner.

  • What Linear Algebra Is23:29

    In this first video of my Mathematical Foundations of Machine Learning series, I introduce the basics of Linear Algebra and how Linear Algebra relates to Machine Learning, as well as providing a brief lesson on the origins and applications of modern algebra.


  • Plotting a System of Linear Equations9:18

    In this video, we recap the sheriff and robber exercise from the preceding video, now viewing the calculations graphically using an interactive code demo in Python.

  • Linear Algebra Exercise5:06

    This video provides an applied linear algebra exercise (involving solar panels) to challenge your understanding of the content from the preceding video.

  • Tensors2:33

    In this video I describe tensors, the fundamental building block of linear algebra for any kind of machine learning.

  • Scalars13:04

    This is the first video in the course that makes heavy use of hands-on code demos. As described in the video, the default approach we assume for executing this code is within Jupyter notebooks within the (free!) Google Colab environment.

    Pro tip: To prevent abuse of Colab (for, say, bitcoin mining), Colab sessions time out after a period of inactivity -- typically about 30 to 60 minutes. If your session times out, you'll lose all of the variables you had in memory, but you can quickly get back on track by following these three steps: 

    1. Click on the code cell you'd like to execute next.

    2. Select "Runtime" from the Colab menubar near the top of your screen.

    3. Select the "Run before" option. This executes all of the preceding cells and then you're good to go!

  • Vectors and Vector Transposition12:18

    This video addresses the theory and notation of 1-dimensional tensors, also known as vector tensors. In addition, we’ll do some hands-on code exercises to create and transpose vector tensors in NumPy, TensorFlow and PyTorch, the leading Python libraries for working with tensors.

  • Norms and Unit Vectors14:37

    This video builds on the preceding one by explaining how vectors can represent a particular magnitude and direction through space. In addition, I’ll introduce norms, which are functions that quantify vector magnitude, and unit vectors. We’ll also do some hands-on exercises to code some common norms in machine learning, including L2 Norm, L1 Norm, Squared L2 Norm, and others.

  • Basis, Orthogonal, and Orthonormal Vectors4:29

    This quick video addresses special types of vectors (basis, orthogonal, and orthonormal), which are critical for machine learning applications. We’ll also do a hands-on code exercise to mathematically demonstrate orthogonal vectors in NumPy.

  • Matrix Tensors8:23

    This video covers 2-dimensional tensors, also known as matrices (or matrixes). We’ll cover matrix notation, and do a hands-on code demo on calculating matrices in NumPy, TensorFlow, and PyTorch.

  • Generic Tensor Notation6:43

    In this video, we generalize tensor notation to tensors with any number of dimensions, including the high-dimensional tensors common to machine learning models. We also jump into a hands-on code demo to create 4-dimensional tensors in and PyTorch and TensorFlow.

  • Exercises on Algebra Data Structures2:07

    In this video, I present three questions to test your comprehension of the Linear Algebra concepts introduced in the preceding handful of videos.

  • Learning Paths0:35

Requirements

  • All code demos will be in Python so experience with it or another object-oriented programming language would be helpful for following along with the hands-on examples.
  • Familiarity with secondary school-level mathematics will make the class easier to follow along with. If you are comfortable dealing with quantitative information — such as understanding charts and rearranging simple equations — then you should be well-prepared to follow along with all of the mathematics.

Description

Mathematics forms the core of data science and machine learning. Thus, to be the best data scientist you can be, you must have a working understanding of the most relevant math.

Getting started in data science is easy thanks to high-level libraries like Scikit-learn and Keras. But understanding the math behind the algorithms in these libraries opens an infinite number of possibilities up to you. From identifying modeling issues to inventing new and more powerful solutions, understanding the math behind it all can dramatically increase the impact you can make over the course of your career.

Led by deep learning guru Dr. Jon Krohn, this course provides a firm grasp of the mathematics — namely linear algebra and calculus — that underlies machine learning algorithms and data science models.


Course Sections

  1. Linear Algebra Data Structures

  2. Tensor Operations

  3. Matrix Properties

  4. Eigenvectors and Eigenvalues

  5. Matrix Operations for Machine Learning

  6. Limits

  7. Derivatives and Differentiation

  8. Automatic Differentiation

  9. Partial-Derivative Calculus

  10. Integral Calculus

Throughout each of the sections, you'll find plenty of hands-on assignments, Python code demos, and practical exercises to get your math game in top form!

This Mathematical Foundations of Machine Learning course is complete, but in the future, we intend on adding extra content from related subjects beyond math, namely: probability, statistics, data structures, algorithms, and optimization. Enrollment now includes free, unlimited access to all of this future course content — over 25 hours in total.


Are you ready to become an outstanding data scientist? See you in the classroom.

Who this course is for:

  • You use high-level software libraries (e.g., scikit-learn, Keras, TensorFlow) to train or deploy machine learning algorithms, and would now like to understand the fundamentals underlying the abstractions, enabling you to expand your capabilities
  • You’re a software developer who would like to develop a firm foundation for the deployment of machine learning algorithms into production systems
  • You’re a data scientist who would like to reinforce your understanding of the subjects at the core of your professional discipline
  • You’re a data analyst or A.I. enthusiast who would like to become a data scientist or data/ML engineer, and so you’re keen to deeply understand the field you’re entering from the ground up (very wise of you!)