Answered step by step
Verified Expert Solution
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
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
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 tensor.
The CNN architecture is as follows. All hyperparameter choice are up to you:
A single convolutional kernel.
A maxpool layer with width and stride
A flattened layer
A Fully Connected Layer
A Softmax activation function
A Cross Entropy Loss objective function.
Additional Implementation Details
Onehot encode your targets beware that the first ID is not
Make sure to either zscore your features or divide them by
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started