Clustering algorithms using stochastic analysis and ensemble techniques.
dendrogram(hier, line=None, layout=None, show_progress=False, **kwargs)
Generates a dendrogram of a hierarchical clustering scheme. Uses Plotly Shapes to draw the dendrogram and a scatter plot to highlight clusters at their branching points.
Returns a Plotly Figure
.
Arguments | Type | Description | |
---|---|---|---|
hier |
Hierarchy |
A Hierarchy which is to be plotted as a dendrogram. |
|
line |
Keyword | dict |
Formatting information for the Plotly line shape. If an attribute is given as a single string or float, will be applied to all lines. If as an array of length hier.clusters.size, will be applied separately to the lines immediately beneath each cluster. |
layout |
Keyword | dict |
Updates values for the Plotly Figure layout . |
show_progress |
Keyword | bool |
Whether to show a tqdm progress bar as the dendrogram is generated. |
**kwargs |
Further keyword arguments | Keyword arguments for the Plotly Scatter trace. If an attribute is given as a single string or float, will be applied to all branch points. If as an array of length hier.clusters.size , will be applied separately to each cluster’s branch point. |