This repo contains implementation of k-means and DBSCAN algorithm from scratch on a sample dataset.
In the below figure, green and blue points represent cluster 1 and cluster 2 respectively. Red points represent noise.
Applying K-means clustering algorithm for given dataset with k=2,
TRUE POSITIVE RATE FOR CLUSTER-1 = 15%
TRUE POSITIVE RATE FOR CLUSTER-2 = 16%
No noise points
TRUE POSITIVE RATE FOR CLUSTER-1 = 100%
TRUE POSITIVE RATE FOR CLUSTER-2 = 100%
Thus, DBSCAN performs better than k-means for the given dataset from figures and true positive rates.