top of page

Sci-kit and various clustering techniques implementation

The code presented was written as part of an assignment for Artificial Intelligence course that I took during Fall 2016 semester at WPI. The first pic shows the question, second pic shows the result obtained from executing the code and finally the link to code repository on github is presented below. The data sets can be found in the github repository

 

Code - https://github.com/AnkitSaini/Scikit-and-various-clustering-techniques-implementation 

 

Question 1

Answer

Implementation of k-means showing the number of iterations and final centroid co-ordinates. 

Pictorial representation of results and data. The red triangle represents the centroids with which the kmeans algorithm started. And finally the green circle represents the final centroids that the kmeans algorithms returns for the two clusters.

question1.png
code_execution1.png
code_execution1_figure.png

Question 2

question_2.png

Answer(top) Fowlkes and Mallows index. (bottom) Confusion matrix for the three clustering techniques.

question2_Fowlkes_Mallow_Index.png
question2_confustion_matrices.png

Question 3

question_3.png

AnswerPerformance of algorithms measured through f-means. The poor performance is possibly because of very small number of training examples.

question3_results.png
bottom of page