Plot
This module has functionalities for visualizing the cluster hierarchy and the results of the algorithms.
- class FOSC.plot.Plot
Bases:
object- plotDendrogram(title: str, saveDescription: str | None = None)
Plots the colored dendrogram of the FOSC hierarchy.
- Parameters:
fosc (FOSC) – The FOSC instance.
title (str) – The title of the dendrogram.
saveDescription (Optional[str]) – The path to save the dendrogram. If None, the dendrogram will be shown interactively.
- plotReachability(partition: ndarray | None = array([], dtype=float64), saveDescription: str | None = None)
Plots a reachability plot.
- Parameters:
fosc (FOSC) – The FOSC instance.
partition (Optional[np.ndarray]) – The partition of the objects. If provided, the plot will be colored and the groups will stand out.
- plotSilhouette(partition: ndarray | None = array([], dtype=float64), saveDescription: str | None = None)
Plots a silhouette-like plot.
- Parameters:
fosc (FOSC) – The FOSC instance.
partition (Optional[np.ndarray]) – The partition of the objects. If provided, the silhouettes are cutted, showing the groups extracted.
saveDescription (Optional[str]) – The path to save the silhouette plot. If None, the plot will be shown interactively.