K-means clustering algorithm.
Instructions
-
Complete the kmeans class in model.py file.
- Implement distance function.
- Implement distortion function.
- Implement cluster function that implements kmeans algorithm.
-
Run the Assignment-4.ipynb set the hyperparameters 'K' and 'n_iterations'.
-
Submit.