logo Use SA10RAM to get 10%* Discount.
Order Now logo

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Arbaaj KhanScience
(5/5)

776 Answers

Hire Me
expert
Alejandro PerryEngineering
(5/5)

960 Answers

Hire Me
expert
Vivek ChauhanComputer science
(5/5)

988 Answers

Hire Me
expert
Bimla RastogiResume writing
(5/5)

954 Answers

Hire Me
Others
(5/5)

Convert all the images in the dataset to grayscale pixel-intensity histograms.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

In this assignment, you will be using the dataset assigned to you in Assignment 1.

You will be assigned three classification methods from the following classification methods: Naive Bayes Classifier, Support Vector Machine (SVM), Decision Tree, Neural Network, Random Forest, Adaboost

Scikit-learn (https://scikit-learn.org/stable/user guide.html) will be used in this assignment

1. Convert all the images in the dataset to grayscale pixel-intensity histograms. (These will be the vector representations of the images).

2. Split dataset into a training set and a test set. For each class, perform a training/test split of 80/20.

3. (Model Selection) Perform 5-fold cross-validation on the training set for k-Nearest Neighbor Classifiers such that ๐‘˜ = 1, 3, 5, 7 on the dataset. (2 points)

Plot a graph (x-axis: k; y-axis: validation accuracy (%)). Which ๐‘˜ has the highest accuracy? (1 points)

Use the ๐‘˜ value with the highest accuracy for your k-Nearest Neighbor classifier. What is the test accuracy? (1 point)

4. (Performance Comparison) Perform 5-fold cross-validation on the 4-class classification (ignore negative class) using the three assigned classification methods (if you are assigned SVM - use Gaussian kernel and C = 10). For neural network (MLPClassifier), you will use default parameters except for learning rate, you will use ’adaptive’. Plot the confusion matrices for the three approaches (clearly label the classes) using the test set (If you use code from any website, please do proper referencing. You will get 0 point for this assignment without proper referencing) (3 points)

Based on the confusion matrices (on the test set), which do you think is the best method? Why? (1 point)

Based on the validation accuracies (from the 5-fold cross-validation) for the three methods. Which is the best method? (0.5 point)

Computer the test accuracies for the three methods. Which is the best method? (0.5 point)

Compute the F-measure for the three methods on the test set. Which is the best method? (1 point)

 

(5/5)
Attachments:

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. Thisย  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme

Get Free Quote!

375 Experts Online