Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

X _ train = X _ train.reshape ( ( X _ train.shape [ 0 ] , 2 8 , 2 8 , 1 ) )

X_train = X_train.reshape((X_train.shape[0],28,28,1))
X_train = X_train.astype('float32')/255.0
y_train_encoded = tf.keras.utils.to_categorical(y_train)
model = Sequential()
model.add(Conv2D(64,(3,3), activation='relu', padding="same", input_shape=(28,28,1)))
model.add(MaxPooling2D((2,2), padding = 'same'))
model.add(Flatten())
model.add(Dense(100, activation='relu'))
model.add(Dense(10, activation='softmax'))

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

List the different categories of international employees. page 642

Answered: 1 week ago

Question

Explain the legal environments impact on labor relations. page 590

Answered: 1 week ago