Please set the path of the dataset before execution
setwd("....../Rbenchmark programs/K-means_IRIS")
Use k-means to analyze the IRIS (flower) data set.
Use k-means to analyze the IRIS (flower) data set, use the Sepal Length and Petal Length in IRIS to make k-mean clustering using these two data, and set k to 3 (divide into 3 groups). The result can be found only Converged after 6 iterations and compared with the original data set.
- DataSet
- Sepal Length
- Sepal Width
- Petal Length
- Petal Width
- Species
- execution result