Enrollments closing soon for Post Graduate Certificate Program in Applied Data Science & AI By IIT Roorkee | 3 Seats Left

04 D 23 H : 44 M : 19 S   Apply Now

Project - Building a CNN Classifier using TensorFlow 2 for MNIST Fashion Dataset

2 / 7

Importing the Modules

Let us start by importing the necessary modules.

INSTRUCTIONS
  • Import numpy as np.

    import << your code comes here >> as << your code comes here >>
    
  • Import tensorflow as tf and check the version of tensorflow.

    import << your code comes here >> as << your code comes here >>
    print("Tensorflow version", tf.__version__)
    
  • Import keras from tensorflow and check the version of keras.

    from tensorflow import << your code comes here >>
    print("Keras version", <<your code comes here >>)
    
  • Import matplotlib.pyplot as plt.

    import  << your code comes here >> as << your code comes here >>
    
  • Set the random seed for tf and np so as to reuse the same set of random variables and reproduce the results.

    np.random.seed(42) 
    tf.random.set_seed(42)
    
Get Hint See Answer


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

Please login to comment

11 Comments

sir how can i upload all my project in my github account

 

  Upvote    Share

can i upload this project on github

  Upvote    Share

import numpy as np
import tensorflow as tf
print("Tensorflow version", tf.__version__)
from tensorflow import keras
print("Keras version", keras)
import matplotlib.pyplot as plt
np.random.seed(42) 
tf.random.set_seed(42)

  Upvote    Share

i had completed this project in fact the whole course 100% many days ago, but right after the expiration of my lab, this project is showing 0% progress. kindly look into this matter.

I'm also uploading a screenshot of email that mentions 100% progress in this course.

  Upvote    Share

This comment has been removed.

Hi, You are already eligible for the certificate. Please click the check certificate eligibility button on the my courses page to request for the certificate. You can mail on reachus@cloudxlab.com for any doubt

  Upvote    Share
import numpy as np
import tensorflow as tf
print("Tensorflow version", tf.__version__)
from tensorflow import keras
print("Keras version", keras.__version__)
import matplotlib.pyplot as plt

np.random.seed(42) 
tf.random.set_seed(42)
  Upvote    Share

import numpy as np
import tensorflow as tf
print("Tensorflow version", tf.__version__)
from tensorflow import keras
print("Keras version", keras)
import matplotlib.pyplot as plt
np.random.seed(42) 
tf.random.set_seed(42)

  Upvote    Share

Hi,

Please submit your solution by submitting it through the assessment engine by writing the code on the right side of the split screen, and then clicking on the Submit Answer button above.

Thanks.

  Upvote    Share

How do I submit the answers?

  Upvote    Share

Hi,

You could just click on the "Submit answer" button visible below the instructions.

Thanks.

  Upvote    Share