The math of NNs
In the following few sections, we’ll discuss the mathematical principles of NNs. This way, we’ll be able to explain NNs through these very principles in a fundamental and structured way.
Linear algebra
Linear algebra deals with objects such as vectors and matrices, linear transformations, and linear equations such as .
Linear algebra identifies the following mathematical objects:
- Scalar: A single number.
- Vector: A one-dimensional array of numbers (also known as components or scalars), where each element has an index. We can denote vectors either with a superscript arrow () or in bold (x), but we’ll mostly use the bold notation throughout the book. The following is an example of a vector:
We can represent a n-dimensional vector as the coordinates of a point in an n-dimensional Euclidean space, . Think of Euclidean space as a coordinate system – the vector starts at the center of that system, and each of the...