Project - How to Build a Sentiment Classifier using Python and IMDB Reviews

2 / 11

Importing the Modules

Let us begin by importing the necessary modules, and setting the random seed so as to get reproducible results.

INSTRUCTIONS
  • Import numpy as np.

     import << your code comes here >> as  << your code comes here >>
    
  • Import tensorflow as tf.

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

    from  << your code comes here >> import  << your code comes here >>
    
  • Set tensorflow seed:

    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

4 Comments

where am i suppose to import ? is that in the lab?

  Upvote    Share

Hi,

You need to write the code on the default Jupyter notebook given on the right side of this split screen.

Thanks.

  Upvote    Share

what is the use of tensorflow seed?

  Upvote    Share

to get reproducible results

  Upvote    Share