2 Introduction to Vectors, Matrices and Tensors from Machine Learning and Data Science point of view
At its core, machine learning, indeed all computer software, is about number crunching. One inputs a set of numbers to the machine and gets back a different set of numbers as output. However, this cannot be done randomly. It is important to organize these numbers appropriately, group them into meaningful objects that go in and come out of the machine. This is where vectors and matrices come in. These are concepts that mathematicians have been using for centuries - we are simply reusing them in machine learning. In this chapter, we will study vectors and matrices, primarily from a machine learning point of view. Starting from the basics, we will quickly graduate to advanced concepts, restricting ourselves to topics that have relevance to machine learning.
We provide Jupyter notebook based python implementations for most of the concepts discussed in this and other chapters. Complete fully functional code that can be downloaded and executed (after installing python and Jupyter notebook) can be found at http://mng.bz/KMQ4. The code relevant to this chapter can be found at http://mng.bz/d4nz.