1. 학습
  2. /
  3. 강의
  4. /
  5. Image Modeling with Keras

Connected

연습 문제

Extracting a kernel from a trained network

One way to interpret models is to examine the properties of the kernels in the convolutional layers. In this exercise, you will extract one of the kernels from a convolutional neural network with weights that you saved in a hdf5 file.

지침

100 XP
  • Load the weights into the model from the file weights.hdf5.
  • Get the first convolutional layer in the model from the layers attribute.
  • Use the .get_weights() method to extract the weights from this layer.