what is a tensor

You will come across this term all the time and often wonder what is a tensor in the context of machine learning

A tensor is essentially a n- dimensional array or a multi dimensional array where n can be 0 to inf.

When you learn ML in matlab , you will be dealing with arrays which are these vectors and then when you create a two dimensional arrays represented as rows and columns etc – you have a matrix , so a lot of the matrix operations are very relevant when it comes to ML.

so the next question is how do you express an n-dimensional array , its often easy to visualize a 3 dimensional structure , but when it goes past 3 , its not possible to visualize it , so it becomes easier to express this in terms of tensors.

a vector is a one dimensional tensor, a matrix is a two dimensional tensor etc . hope this helps