e-means Meets DBSCAN: Two Moons Said Yes, Cairo Said No
Back in 2016, I wrote DBSCAN on Spark . I like DBSCAN because you do not have to give it the number of clusters. But it uses a lot of time and memory when the input is large. This month, Meta FAIR and École des Ponts released e-means in faiss 1.16.0. It does the work of k-means in a few passes over the data. So I asked a simple question: can e-means make the data small, so that DBSCAN can do the rest? In this post, I show how I combined the two and how fast e-means is on a GPU. Then I test the method on real satellite data of Cairo. It did not win there. The source is on GitHub: mraad/emeans-dbscan . The e-means explorer after one run on Cairo with k = 3. All the arithmetic runs in the browser. The terms Vector. One row of numbers. There are n vectors, and each vector has d numbers. Centroid. The center point of a cluster. There are k centroids. Epoch. One pass over all the training vectors. Noise. The vectors that DBSCAN does not put in a cluster. Their...