Question: Question 5: ANSWER C & D In this exercise you are required to use scikit-learn to compare different machine learning algorithms applied on the iris

Question 5: ANSWER C & D

In this exercise you are required to use scikit-learn to compare different machine learning algorithms applied on the iris dataset. Load the iris dataset and split the data into training and test data with a test_size of 0.4.

c) Implement a 5-NN (5-Nearest Neighbors) classifier. Train it on the training data and test it on the test data. Provide a screenshot showing the obtained score.

d) Given the results obtained and the number of dimensions of the feature vector, is the K-NN classifier suitable?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!