Question: Look at the following Keras code and choose the correct answer: ` ` ` model = Sequential ( ) model.add ( Dense ( 5 1
Look at the following Keras code and choose the correct answer:
model Sequential
model.addDense activation'relu', inputdim
model.addDense activation'relu'
model.addDense
model.compileoptimizer'adam', loss'mae', metricsmae
A The code above is useless because there is an optimizer adam but no activation function at output layer to optimize.
B The code above is for classification but not necessary binary because the loss function is not 'binarycrossentropy'
C The code above is for regression because there is no activation function at the output layer
D The code above is for binary classification because there is one neuron on the output layer
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
