Question: apply tSNE to the feature vectors output by a Convolutional Neural Network ( CNN ) . 1 . Load the cifar 1 0 data .
apply tSNE to the feature vectors output by a Convolutional Neural Network CNNLoad the cifardataRemember that some networks like the efficientNet expect unnormalized images. Build a CNN which accepts cifarimages as input. it makes sense to use GlobalAveragePoolingD after efficient net. If you use a network pretrained on imagenet, make sure you need to reshape the data first
If you use efficientNet remember it accepts unnormalized data so don't divide by Feed the entire test data through the feature extraction part of the network. Use the predict functionmethod to get your output vectors. Use the predict functionmethod to get your output vectors. If your network is meant for classification, make sure not to take the final predictions class probabilities Take the input of the layer which would normally be fed into the MLPApply tSNE to the resulting vectors as usual. Visualize the tSNE output using a dimensional scatterplot, color point depending on the correct label. The labelsicorresponds to the ith class as specified by ytrain. Id use both colors and labels. Use pltlegend to include the labels in the plot. What kind of classeslabels are most often confused? Visualize the tSNE output using a scatterplot, but this time show the image corresponding to each point. Use a network finetuned to cifarand repeat the tSNE plots.
trainfit the network on the train dataset. carefully unfreeze some of the layers
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
