Build a function that determines the distance for a new iris (specified by the four measurements), when compared to a cluster centre. Build another function that looks at all the cluster centres and...


Build a function that determines the distance for a new iris (specified by the four measurements), when compared to a cluster centre. Build another function that looks at all the cluster centres and tells you which cluster is the closest to the new iris. Use the dist function.


Then create an interactive application that takes values for the dimensions of both the Petal and Sepal of a newly measured Iris, and then classify it as one of the three species. The easiest way to do this is to use four sliders, with ranges pre-specified to the extents of the existing dataset. The application could just state the species that it thinks is correct.



May 26, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here