The best way to identify the shape of a array

Hi @Bio_J

The way of reading the shape of an array can be different for each person. Personally, I read the shape from the outermost to the innermost dimensions. However, by simply using .shape you can get the dimensions.

For naming each dimension in a multi-dimensional array, there isn’t a strict standard, but there are common conventions:

  • 1D Array (Vector) → n-vector
  • 2D Array (Matrix) → Dimensions: rows and columns
  • 3D Array (Also called a tensor) → Dimensions: depth, rows, and columns
  • 4D and Higher Dimensional Arrays (Generally referred to as tensors) → Naming conventions can become more complex, with terms like batch, channels, depth, rows, columns, etc., depending on the context of the data.
5 Likes