Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(1) Simply use the same steps in the previous part and from the previous lab to implement SVM, kNN, and Logistic regression. (2) Make sure

(1) Simply use the same steps in the previous part and from the previous lab to implement SVM, kNN, and Logistic regression.

(2) Make sure to improve the accuracy of prediction by exploring and choosing the best number of features to include in the model.

(3) At each step you write in the code, please indicate what is the current task in the Machine learning workflow (write it as a comment before the code).

(4) Which one is better? SVM, k-NN or Logistic regression?


student submitted image, transcription available below

student submitted image, transcription available below  

CCCY 431 - Machine Learning for Cybersecurity Task 2 - SVM Need apply SVM, k-nearest neighbor (k-NN) and logistic regression models on the "Zoo dataset", which has 17 features and one label "class_type". (value from 1 to 7 represent the 7 class types of Animal: Mammal, Bird, Reptile, Fish, Amphibian, Bug and Invertebrate). Your task is: (1) Simply use the same steps in the previous part and from the previous lab to implement SVM, KNN, and Logistic regression. (2) Make sure to improve the accuracy of prediction by exploring and choosing the best number of features to include in the model. (3) At each step you write in the code, please indicate what is the current task in the Machine learning workflow (write it as a comment before the code). (4) Which one is better? SVM, K-NN or Logistic regression? A Basic Machine Learning Workflow Representation Evaluation Optimization Choose A feature representation Type of classifier to use image pixels, with Choose What criterion distinguishes good vs. bad classifiers knearest neighbor classifier eg. % correct prediction on test Choose How to search for the settings parameters that give the best classifier. for this evaluation criterion eg. try a range of values for "" parameter in k-nearest neighbor clasifier Item Reading the dataset and make the split KNN model (create object, train, predict) each is 0.5 Logistic Regression model (create object, train, predict) each is 0.5 SVM model (create object, train, predict) each is 0.5 explore the best number of features and identify them. Redo at least one of the three model to prove the improvement State which method is better in the current experiment Mapping with Machine learning workflow Mark 0.5 0.5 0.5 1 1 1 0.25 0.25 5

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

Applied Regression Analysis And Other Multivariable Methods

Authors: David G. Kleinbaum, Lawrence L. Kupper, Azhar Nizam, Eli S. Rosenberg

5th Edition

1285051084, 978-1285963754, 128596375X, 978-1285051086

More Books

Students also viewed these Programming questions