Solved

Which of the Following Statements Is False

Question 31

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions