SergioFierens / ai4r

Artificial Intelligence for Ruby - A Ruby playground for AI researchers
http://ai4r.rubyforge.org
713 stars 124 forks source link

Hierarchical Agglomerative Clustering based on distance #34

Closed edwardsamuel closed 6 years ago

edwardsamuel commented 8 years ago

Currently for hierarchical agglomerative clustering, we can only retrieve the clusters based on the total number of clusters. One of the features of this bottom-to-top clustering is we can stop the clustering process (or cut the clustering tree) at any distance among clusters.

If we compare to Scipy implementation for creating flat clusters, the current implementation supports criterion='maxclust' only. This pull request make criterion='distance' can be done.