February 2019
Beginner to intermediate
568 pages
13h 5m
English
Now that we have fit the model, let's validate the output we obtain from the model by implementing the feedforward portion of the CNN:
model.weights

You can see that the weights of the convolution layer are presented first, then the bias, and finally the weight and bias in the output layer.
Also note that the shape of weights in the convolution layer is (3, 3, 1, 1) as the filter is 3 x 3 x 1 in shape (because the image is three-dimensional: 28 x 28 x 1 in shape) and the final 1 (the fourth value in shape) is for the number of filters that are specified ...
Read now
Unlock full access