Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 571 Bytes

File metadata and controls

15 lines (13 loc) · 571 Bytes

The Sparks Foundation Task-2

TASK-2 : Prediction using Unsupervised ML From the given ‘Iris’ dataset, predict the optimum number of clusters and represent it visually.

Steps-

  1. Import the required libraries
  2. Loading the iris dataset
  3. Printing shape, head and tail of data
  4. Checking for null values
  5. Data Visualization
  6. Finding the optimum number of clusters for k-means classification
  7. Plotting the results onto a line graph
  8. Applying kmeans to the dataset / Creating the kmeans classifier
  9. Visualising the clusters - On the first two columns