I'm trying to build a dendrogram using the
children_ attribute provided by
AgglomerativeClustering, but so far I'm out of luck. I can't use
scipy.cluster since agglomerative clustering provided in
scipy lacks some options that are important to me (such as the option to specify the amount of clusters). I would be really grateful for a any advice out there.
import sklearn.cluster clstr = cluster.AgglomerativeClustering(n_clusters=2) clusterer.children_