Chapter 2: The Math of Neural Networks Flashcards
core building block of neural network
layer
Neural layers do what?
extract representations out of the data fed to them
Chaining together successive neural layers creates what?
Progressive Data distillation
Dense Neural layer
Fully connected neural layer
Parts of the compilation step
- loss function 2. an optimizer 3. metrics to monitor during data and training
multidimensional NumPy arrays also called what?
Tensors
What are tensors
Tensors are a generalization of matrices to an arbitrary number of dimensions. A container for data almost always numerical
Alternate name for dimension in the context of tensors?
Axis
Term for the number of axes of a tensor?
its rank
Tensor that contains only 1 number
Scalar
An array of numbers
Vector
1D Tensor
Vector
0D Tensor
Scalar
How many Axes do vectors have?
1
What is a vector’s dimension?
the number of entries along its axis. NOT the same as tensor dimension
An array of vectors
Matrix
2D Tensor?
Matrix
3 Key attributes of a Tensor
- Number of axes
- Shape
- Data type
Tensor Shape
A tuple of numbers that describes how many dimensions it has along each axis
Tensor Axis convention
Axis = 0 Sample axis Axis = 1 Feature axis Axis = 2 Time axis
Element-wise operations
applied independently to each entry the tensors
vectorized implementations
amenable to massively parallel implementation
Geometric Interpretation of Deep Learning
Neural networks consist entirely of chains of tensor operations and all of these tensor operations are just geometric transformations of the input data
Differentiable
Can be derived