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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here