Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For the following line of code used to build a Convolutional Neural Network model, choose the correct pairing. X _ train = X _ train.reshape
For the following line of code used to build a Convolutional Neural Network model, choose the correct pairing.
Xtrain Xtrain.reshapeXtrain.shape
Xtrain Xtrain.astypefloat
ytrainencoded tfkeras.utils.tocategoricalytrain
model Sequential
model.addConvD activation'relu', padding"same", inputshape
model.addMaxPoolingD padding 'same'
model.addFlatten
model.addDense activation'relu'
model.addDense activation'softmax'
A
Xtrain Xtrain.astypefloat
i adding an output layer to the model
B
model.addConvD activation'relu', padding"same", inputshape
ii Adds maxpooling layer
C
model.addMaxPoolingD padding 'same'
iii Adds a convolutional layer
D
model.addDense activation'softmax'
iv
Normalizes the data in the Xtrain array by scaling
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started