liveBook · Manning

Dimension

As explained in Math and Architectures of Deep Learning

The number of independent coordinates in an input space, used here to distinguish one-dimensional from two-dimensional constructions.

Dimension counts the independent coordinates needed to describe a point in a space. A vector with n elements represents a point in n-dimensional space; a two-element vector represents a point in a plane. section 2.1.1

Dimension connects mathematical representation with machine-learning geometry:

  • In two dimensions, vector elements can serve as Cartesian x and y coordinates. section 2.1.1
  • In higher dimensions, vectors represent points in high-dimensional spaces, while models can be viewed as geometric transformations between those spaces. section 2.1.1
  • The same dimensional idea extends ellipse equations from two dimensions to n-dimensional hyperellipses. section 2.17

A two-dimensional hyperellipse

The equation 5x² + 6xy + 5y² = 20 describes a two-dimensional ellipse. Writing it with a matrix makes the construction extensible to multiple dimensions; diagonalizing that matrix and rotating the coordinate system aligns the coordinate axes with the ellipse’s axes. section 2.17.1

Figure 2.2 A vector describing the position of point P with respect to point O. The basic mental picture is an arrowed line. This agrees with the definition of a vector that you may have learned in high school: a vector has a magnitude (length of the arrowed line) and direction (indicated by the arrow). On a plane, this is equivalent to the ordered pair of numbers x, y, where the geometric interpretations of x and y are as shown in the figure. In this context, it is worthwhile to note that only the relative positions of the points O and P matter. If both the points are moved, keeping their relationship intact, the vector does not change.

Use the geometric vector figure to connect coordinate counts with points, directions, and representations in a plane. section 2.1.1

How Math and Architectures of Deep Learning covers it

How deep it goes
Defines dimensions geometrically and extends them to hyperellipses, stopping short of a broader dimensionality treatment.
Examples
Uses plane coordinates, a page-corner vector, and a two-dimensional hyperellipse implemented with PyTorch.
What it assumes
Assumes familiarity with vectors and coordinates while establishing their geometric interpretation through points and planes.
What you can do after
Evaluate/understand how coordinate counts determine vector spaces and how two-dimensional constructions extend to multiple dimensions.
How it connects
Connects dimension with vectors, coordinate systems, matrices, tensors, geometric transformations, hyperellipses, and eigenvectors.

Also explained in

Compare how 8 books explain dimension →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Math and Architectures of Deep Learning. The section links point to the parts of the book it draws on.