Introduction to Tensors

“Dwell on the beauty of life. Watch the stars, and see yourself running with them.”
Marcus Aurelius

With the basic knowledge of vectors and matrices under our belts now, we familiarize ourself with tensors. Tensors are central to vectorized computations for machine learning tasks. In this chapter, we define tensors and discuss their mathematical properties. The programming counterpart involves Numpy n-dimensional arrays.

TipChapter Objectives

In this chapter, we will learn the following:

  1. Tenors and their operations

  2. Numpy n-dimensional arrays

  3. Numpy array creation

  4. Numpy random number generator

  5. Indexing and Slicing of arrays

  6. Comprehending data science in the language of tensors.