Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Complete this as a R Markdown, knit it into word document and upload. Question 1 a) Build a knn classifier to classify iris dataset. b)
Complete this as a R Markdown, knit it into word document and upload.
Question 1
a) Build a knn classifier to classify iris dataset.
b) Use k-fold cross validation with k=15 repeated 40 times.
c) Calculate the accuracy, mmce and confusion matrix
d) If the measurement of Sepal.Length, Sepal.Width, Petal.Length and Petal.Width for a data are 5.9 , 3 , 4.2 and 1.8 respectively. Create a tibble representing this data and use the created model to check the category of this data.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started