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.add(Dense(512, activation='relu', input_dim=3))
model.add(Dense(512, activation='relu'))
model.add(Dense(1))
model.compile(optimizer='adam', loss='mae', metrics=['mae'])
```
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 'binary_crossentropy'
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
Look at the following Keras code and choose the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!