Project - Introduction to Transfer Learning (Cat vs Non-cats Project)

8 / 26

Cats vs Non-cats using Transfer Learning - Importing the Modules

We are going to use the following modules for this exercise:

  • NumPy
  • h5py
  • matplotlib
  • TensorFlow
  • tensorflow.keras
  1. Import the following modules as instructed:

    • import numpy as np
    • import matplotlib's pyplot as plt
    • import h5py
  2. Import the following modules:

    • Import tensorflow

      import << your code comes here >>
    • Import SGD from tensorflow.keras.optimizers

      from tensorflow.keras.optimizers import << your code comes here >>
    • Import Sequential from tensorflow.keras.models

      from tensorflow.keras.models import  << your code comes here >>
    • Import VGG16 from tensorflow.keras.applications

      from tensorflow.keras.applications import  << your code comes here >>
    • Import Input, Dense, Dropout, GlobalAveragePooling2D from tensorflow.keras.layers

      from tensorflow.keras.layers import  << your code comes here >>
    • Write the below code, to assign a seed value to NumPy and TensorFlow so as to make sure the output stable across runs:

Get Hint See Answer

Note - Having trouble with the assessment engine? Follow the steps listed here

Loading comments...