TASK-2 : Prediction using Unsupervised ML From the given ‘Iris’ dataset, predict the optimum number of clusters and represent it visually.
Steps-
- Import the required libraries
- Loading the iris dataset
- Printing shape, head and tail of data
- Checking for null values
- Data Visualization
- Finding the optimum number of clusters for k-means classification
- Plotting the results onto a line graph
- Applying kmeans to the dataset / Creating the kmeans classifier
- Visualising the clusters - On the first two columns