A beginners guide to the math that powers machine learning – The Next Web

How much math knowledge do you need for machine learning and deep learning? Some people say not much. Others say a lot. Both are correct, depending on what you want to achieve.

There are plenty of programming libraries, code snippets, and pretrained models that can get help you integrate machine learning into your applications without having a deep knowledge of the underlying math functions.

But theres no escaping the mathematical foundations ofmachine learning. At some point in your exploration and mastering of artificial intelligence, youll need to come to terms with the lengthy and complicated equations that adorn AI whitepapers and machine learning textbooks.

In this post, I will introduce some of my favorite machine learning math resources. And while I dont expect you to have fun with machine learning math, I will also try my best to give you some guidelines on how to make the journey a bit more pleasant.

Khan Academys online courses are an excellent resource to acquire math skills for machine learning

Many machine learning books tell you that having a working knowledge of linear algebra. I would argue that you need a lot more than that. Extensive experience with linear algebra is a must-havemachine learning algorithms squeeze every last bit out of vector spaces and matrix mathematics.

You also need to know a good bit of statistics and probability, as well as differential and integral calculus, especially if you want to become more involved indeep learning.

There are plenty of good textbooks, online courses, and blogs that explore these topics. But my personal favorite isKhan Academys math courses. Sal Khan has done a great job of putting together a comprehensive collection of videos that explain different math topics. And its free, which makes it even better.

Although each of the videos (which are also available on YouTube) explain a separate topic, going through the courses end-to-end provides a much richer experience.

I recommend thelinear algebracourse in particular. Here, youll find everything you need about vector spaces, linear transformations, matrix transformations, and coordinate systems. The course has not been tailored for machine learning, and many of the examples are about 2D and 3D graphic systems, which are much easier to visualize than the multidimensional spaces of machine learning problems. But they discuss the same concepts youll encounter in machine learning books and whitepapers. In the course are some hidden gems like least square calculations and eigenvectors, which are important topics in machine learning.

The calculus course are a bit more fragmented, but it might be a good feature for readers who already have a strong foundation and just want to brush up their skills. Khan includes precalculus, differential calculus, and integral calculus courses that cover the foundations. Themultivariable calculus coursediscusses some of the topics that are central to deep learning, such as gradient descent and partial derivatives.

There are also several statistics courses in Khan Academys platform, and there are some overlaps between them. They all discuss some of the key concepts you need in data science and machine learning, such as random variables, distributions, confidence intervals, and the difference between continuous and categorical data. I recommend thecollege statistics course, which includes some extra material that is relevant to machine learning, such as the Bayes theorem.

To be clear, Khan Academys courses are not a replacement for the math textbook and classroom. They are not very rich in exercises. But they are very rich in examples, and for someone who just needs to blow the dust off their algebra knowledge, theyre great. Sal talks very slowly, probably to make the videos usable for a wider audience who are not native English speakers. I run the videos on 1.5x speed and have no problem understanding them, so dont let the video lengths taunt you.

Vanilla algebra and calculus are not enough to get comfortable with the mathematics of machine learning. Machine learning concepts such as loss functions, learning rate, activation functions, and dimensionality reduction are not covered in classic math books. There are more specialized resources for that.

My favorite isMathematics for Machine Learning. Written by three AI researchers, the provides you with a strong foundation to explore the workings of different components of machine learning algorithms.

The book is split into two parts. The first part is mathematical foundations, which is basically a revision of key linear algebra and calculus concepts. The authors cover a lot of material in little more than 200 pages, so most of it is skimmed over with one or two examples. If you have a strong foundation, this part will be a pleasant read. If you find it hard to grasp, you can combine the chapters with select videos from Khans YouTube channel. Itll become much easier.

The second part of the book focuses on machine learning mathematics. Youll get into topics such as regression, dimensionality reduction, support vector machines, and more. Theres no discussion ofartificial neural networksand deep learning concepts, but being focused on the basics makes this book a very good introduction to the mathematics of machine learning.

As the authors write on their website: The book is not intended to cover advanced machine learning techniques because there are already plenty of books doing this. Instead, we aim to provide the necessary mathematical skills to read those other books.

For a more advanced take on deep learning, I recommendHands-on Mathematics for Deep Learning. This book also contains an intro on linear algebra, calculus, and probability and statistics. Again, this section is for people who just want to jar their memory. Its not a basic introductory book.

The real value of this book comes in the second section, where you go into the mathematics of multilayer perceptrons,convolutional neural networks(CNN), andrecurrent neural networks(RNN). The book also goes into the logic of other crucial concepts such as regularization (L1 and L2 norm), dropout layers, and more.

These are concepts that youll encounter in most books on machine learning and deep learning. But knowing the mathematical foundations will help you better understand the role hyperparameters play in improving the performance of your machine learning models.

A bonus section dives into advanced deep learning concepts, such as the attention mechanism that has made Transformers so efficient and popular, generative models such as autoencoders andgenerative adversarial networks, and the mathematics oftransfer learning.

Agreeably, mathematics is not the most fun way to start machine learning education, especially if youre self-learning. Fortunately, as I said at the beginning of this article, you dont need to begin your machine learning education by poring over double integrals, partial derivatives, and mathematical equations that span a pages width.

You can start with some of the more practical resources on data science and machine learning. A good introductory book isPrinciples of Data Science, which gives you a good overview of data science and machine learning fundamentals along with hands-on coding examples in Python and light mathematics.Hands-on Machine Learning andPython Machine Learningare two other books that are a little more advanced and also give deeper coverage of the mathematical concepts. UdemysMachine Learning A-Zis an online course that combines coding with visualization in a very intuitive way.

I would recommend starting with one or two of the above-mentioned books and courses. They will give you a working knowledge of the basics of machine learning and deep learning and prepare your mind for the mathematical foundations. Once you know have a solid grasp of different machine learning algorithms, learning the mathematical foundations becomes much more pleasant.

As you master the mathematics of machine learning, you will find it easier to find new ways to optimize your models and tweak them for better performance. Youll also be able to read the latest cutting edge papers that explain the latest findings and techniques in deep learning, and youll be able to integrate them into your applications. In my experience, the mathematics of machine learning is an ongoing educational experience. Always look for new ways to hone your skills.

This article was originally published by Ben Dickson on TechTalks, a publication that examines trends in technology, how they affect the way we live and do business, and the problems they solve. But we also discuss the evil side of technology, the darker implications of new tech and what we need to look out for. You can read the original article here.

Published October 2, 2020 10:00 UTC

More here:
A beginners guide to the math that powers machine learning - The Next Web

Related Posts
This entry was posted in $1$s. Bookmark the permalink.