Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 1 ( 3 0 Points ) : Build an convolutional neural network,the function should return model with the following specifications: First Convolutional Layer: Uses

Problem 1(30 Points): Build an convolutional neural network,the function should return model with the following specifications:
First Convolutional Layer: Uses 6 filters with a kernel size of 55, 'relu' activation and
First Pooling Layer: Uses max pooling with a pool size of 22 and a stride of 2.
Second Convolutional Layer: Uses 16 filters with a kernel size of 55 and 'relu' activation.
Second Pooling Layer: Uses max pooling with the same specifications as the first pooling layer.
Flattening Layer: Converts the feature map to a 1D array.
First Dense Layer: Has 120 units with 'relu' activation.
Second Dense Layer: Has 84 units with 'relu' activation.
Third Dense Layer: Has 10 units with 'softmax' activation.
The network should be compiled using Adam optimizer, categorical_crossentropy loss function and accuracy as a metric.Build an convolutional neural network,the function should return model with the following specifications:
First Convolutional Layer: Uses 6 filters with a kernel size of 5x5, 'relu' activation and 28x28 pixels, grayscale as input images size.
First Pooling Layer: Uses max pooling with a pool size of 2x2 and a stride of 2.
Second Convolutional Layer: Uses 16 filters with a kernel size of 5x5 and 'relu' activation.
Second Pooling Layer: Uses max pooling with the same specifications as the first pooling layer.
Flattening Layer: Converts the feature map to a 1D array.
First Dense Layer: Has 120 units with 'relu' activation.
Second Dense Layer: Has 84 units with 'relu' activation.
Third Dense Layer: Has 10 units with 'softmax' activation.
The network should be compiled using Adam optimizer, categorical_crossentropy loss function and accuracy as a metric. from warnings import filters
import keras
from keras.models import Sequential
from keras.layers import Conv2D, MaxPooling2D, Flatten, Dense
from tensorflow import keras
# Function 1: Build the model
def create_model():
'''
output: A compile CNN model with the specifications listed in the question
'''
### BEGIN SOLUTION
return model
image text in transcribed

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

Recommended Textbook for

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions

Question

Find F(s) if f (t) = te-at u(t-4)

Answered: 1 week ago

Question

What is the use of bootstrap program?

Answered: 1 week ago

Question

What is a process and process table?

Answered: 1 week ago

Question

What is Industrial Economics and Theory of Firm?

Answered: 1 week ago

Question

c. What were you expected to do when you grew up?

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago