Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 CNN For Image Classification Let's see if this works on real data! We'll attempt to classify people in the Yale Faces dataset. Since training

4 CNN For Image Classification
Let's see if this works on real data! We'll attempt to classify people in the Yale Faces dataset. Since
training a CNN can be very time consuming, we'll so the following:
Resize the images to be 4040
Just use one image for each person for training (we will not use any validation set).
As a result, your training data will be a 144040 tensor.
The CNN architecture is as follows. All hyperparameter choice are up to you:
A single 99 convolutional kernel.
A max-pool layer with width =4 and stride =4.
A flattened layer
A Fully Connected Layer
A Softmax activation function
A Cross Entropy Loss objective function.
Additional Implementation Details
One-hot encode your targets (beware that the first ID is not 0)
Make sure to either z-score your features or divide them by 255.
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

Databases Illuminated

Authors: Catherine M. Ricardo

1st Edition

0763733148, 978-0763733148

More Books

Students also viewed these Databases questions

Question

Compare and contrast verbal and nonverbal codes

Answered: 1 week ago

Question

Define and discuss the nature of ethnocentrism and racism

Answered: 1 week ago

Question

Define and discuss racial and ethnic stereotypes across cultures

Answered: 1 week ago