This is an implementation of K-Means clustering algorithm along with the K-Means++ seeding technique using NumPy. Further, a comparison of the manual implementation is made against the SK Learn implementation of the algorithm. The Iris dataset is used for this comparison.
0 | 1 | 2 | |
---|---|---|---|
0 | 50 | 0 | 0 |
1 | 0 | 48 | 2 |
2 | 0 | 14 | 36 |
0 | 1 | 2 | |
---|---|---|---|
0 | 50 | 0 | 0 |
1 | 0 | 62 | 0 |
2 | 0 | 0 | 38 |
0 | 1 | 2 | |
---|---|---|---|
0 | 50 | 0 | 0 |
1 | 0 | 62 | 0 |
2 | 0 | 0 | 38 |