November 2018
Beginner to intermediate
348 pages
8h 32m
English
Clustering with DBSCAN using Marcin's package is equally simple. In fact, you would just need to change one single line of code from this:
c, err := clusters.KMeans(10000, 25, clusters.EuclideanDistance)
You would change it to this:
c, err := clusters.DBSCAN(eps, minPts, clusters.EuclideanDistance)
Now, of course, the question is what values should eps and minPts be?
eps represents the minimum distance required for two points to be considered a neighbor. minPts is the minimum number of points to form a dense cluster. Let's address eps first.
How do we know what the best distance is? A good way to figure this out is usually to visualize the data. In fact, this is what the original inventors of the DBSCAN algorithm suggests. ...
Read now
Unlock full access