We will implementing PCA and k-means clustering on the iris dataset. The corresponding Python code is available in iris_PCA_KMeans.ipynb.
There are 4 independent variables – sepal length, sepal width, petal length and petal width. There is 1 target variable ‘Species’ with 3 possible labels - ‘Iris-setosa’, ‘Irisversicolor’ and ‘Iris-virginica’