Question
Load up the iris data set. This can be easily done using the command load fisheriris. Using only the ff. features: petal width (y-axis) and
Load up the iris data set. This can be easily done using the command "load fisheriris". Using only the ff. features: petal width (y-axis) and sepal width (x-axis), partition the iris data set into three (3) clusters using k-means clustering. Refer to this reference to have an idea how youre partitioning should look like: https://www.kaggle.com/xuhewen/iris-dataset-visualization-and-machine-learning Links to an external site.. Store the cluster labels in a 150-by-1 matrix called: id1. The plot of both the output of the kmeans and the actual clusters of the data set should be shown in Figure 1. Make use of the subplot command for this. Observe proper plot titles and axis labels.
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