Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 1 5 0 points 5 pts each for 1 . 1 - 1 . 5 and 2 5 pts for Q 1 . 6

Q150 points 5 pts each for 1.1-1.5 and 25 pts for Q1.61. Load MNIST dataset2. Take one random image from each class and estimate L1 distance to every other class. Display theseresults as cell output3. Load CIFAR10 dataset4. Take one random image from each class and estimate L1 distance to every other class. Display theseresults as cell output5. Find the closest neighboring class (K=1) based on L1 distance for each image class and provide yourthoughts on why these images from different class looks similar.6. Repeat Steps 1-5 but replace L1 distance with L2 distanceQ250 points 5 pts each for 2.1-2.4 and 30 pts for Q2.51. Divide the MNIST data in train (80%) and test (20%)2. Based on L1 distance function, run K-nearest neighbor classifier for K=5 on test set.3. Estimate the computing time to complete testing4. Repeat steps 2 and 3 for K=25,55, and 1055. Repeat steps 2,3, and 4 with L2 as a distance functionQ350 points 10 pts each1. Implement the same code in the link provided in Resources section (R3) for MNIST dataset2. Repeat step 1 by changing the number of neurons in the second layer to same size as your input3. Repeat step 1 by changing the number of neurons in the second layer to 2 times the size of your input4. Repeat step 1 by adding another dense layer with (your chosen number) neurons5. Compare the accuracy for the 3 above classifiers from 1-4Q420 points1. Summarize the key observations in Q1, Q2, and Q3.Bonus Q 30 points 15 pts each1. Apply KNN to fashion MNIST data (provided in the link R1.3)2. Compare accuracies of MLP on fashion MNIST and KNN from Bonus Q1.Resources1. To load MNIST and CIFAR10 dataset from Tensorflow and KerasModule: tf.keras.datasets | TensorFlow v2.15.0.post12. Implementing KNN from scratchImplementing KNN from Scratch | Nikita Kozodoi3. Multi-layer Perceptron for image classificationBasic classification: Classify images of clothing | TensorFlow Core

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

OpenStack Trove

Authors: Amrith Kumar, Douglas Shelley

1st Edition

1484212215, 9781484212219

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago