Halloween Sale: Flat 70% + Addl. 25% Off + 30 Days Extra Lab on all Courses | Use Coupon HS25 in Checkout | Offer Expires In

  Enroll Now

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
INSTRUCTIONS
  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:

      np.random.seed(42)
      tensorflow.random.set_seed(42)
      

No hints are availble for this assesment

Answer is not availble for this assesment


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

Loading comments...