Multiple Choice
Which of the following statements is false?
A) The pad_sequences utility function (module tensorflow.keras.preprocessing.sequence) reshapes the rows in an array of to the number of features specified by the maxlen argument (200) and returns a two-dimensional array:
[16]: words_per_review = 200
[17]: from tensorflow.keras.preprocessing.sequence import pad_sequences
[18]: X_train = pad_sequences(X_train,
Maxlen=words_per_review)
B) If a sample has more features, pad_sequences truncates it to the specified length.
C) If a sample has fewer features, pad_sequences adds space characters to the beginning of the sequence to pad it to the specified length.
D) You can confirm X_train's new shape with the array's shape attribute:
[19]: X_train.shape
[19]: (25000, 200)
Correct Answer:

Verified
Correct Answer:
Verified
Q26: Which of the following statements a), b)
Q27: Which of the following statements a), b)
Q28: Which of the following statements a), b)
Q29: The _ activation function, which is preferred
Q30: A Keras _ layer reshapes its input
Q32: Which of the following statements is false?<br>A)
Q33: Which of the following statements a), b)
Q34: To use TensorBoard, before you fit your
Q35: Once you've added all the layers to
Q36: Which of the following statements a), b)