sklearn agglomerative clustering: dynamically updating the number of clusters
<p>The documentation for sklearn.cluster.AgglomerativeClustering mentions that,</p>

<blockquote>
  <p>when varying the number of clusters and using caching,
  it may be advantageous to compute the full tree.</p>
</blockquote>

<p>This seems to imply that it is possible to first compute the full tree, and then quickly update the number of desired clusters as necessary, without recomputing the tree (with caching).</p>

<p>However this procedure for changing the number of clusters does not seem to be documented. I would like to do this but am unsure how to proceed.</p>

<p>Update: To clarify, the fit method does not take number of clusters as an input:
<a href="http://scikit-learn.org/stable/modules/generated/sklearn.cluster.AgglomerativeClustering.html#sklearn.cluster.AgglomerativeClustering.fit" rel="nofollow">http://scikit-learn.org/stable/modules/generated/sklearn.cluster.AgglomerativeClustering.html#sklearn.cluster.AgglomerativeClustering.fit</a></p>