Question: et's build a model using hierarchical clustering. Hierarchical clustering module is available from sklearn.cluster.AgglomerativeClustering. You can choose linkage type and metric. Please check its documentation

et's build a model using hierarchical clustering. Hierarchical clustering module is available from sklearn.cluster.AgglomerativeClustering. You can choose linkage type and metric. Please check its documentation for more details.
a) Number of clusters vs distance threshold Oftentimes hierarchical clustering does not need to know the number of clusters in advance. Instead, one needs to choose threshold distance/similarity to cut the dendrogram later. The AgglomerativeClustering module lets you specify either the number of clusters (n_clusters) or the threshold (distance_threshold). Based on our data, which should we choose to set to which value and why?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!