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
Q60: Which of the following statements a), b)
Q61: Which of the following statements a), b)
Q62: With only two possible outputs, we use
Q63: Which of the following are popular predefined
Q64: Which of the following statements is false?
A)
Q66: Which of the following statements a), b)
Q67: Which of the following statements is false?
A)
Q68: Which of the following statements is false?
A)
Q69: Which of the following statements a), b)
Q70: A Keras model's _ method returns the
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents