Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

For the following line of code used to build a Neural Network model, choose the correct pairing - from tensorflow.keras.utils import to _ categorical y

For the following line of code used to build a Neural Network model, choose the correct pairing -
from tensorflow.keras.utils import to_categorical
y_train = to_categorical(y_train, 10)
model = keras.Sequential()
model.add(Dense(32, activation='relu',input_shape=(23,)))
model.add(Dense(35, activation='sigmoid')
model.add(Dense(10, activation='softmax'))
adam = optimizers.Adam()
A
model.add(Dense(10, activation='softmax'))
i Converting the train target variable into Numpy array
B
y_train = to_categorical(y_train, 10)
ii Initializing a sequential model
C
model.add(Dense(35, activation='sigmoid')
iii adding an output layer to the model
D
model = keras.Sequential()
iv adding the hidden layer to the model

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Should there be an insanity defense?

Answered: 1 week ago

Question

understand the meaning of the terms discipline and grievance

Answered: 1 week ago