Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
