graphclust.cluster.FuzzyNeighborhoodClustering#

class graphclust.cluster.FuzzyNeighborhoodClustering(n_clusters=None, *, k=6, r_max=3, alpha=0.2, linkage='single', distance_threshold=None, min_cluster_size=1)[source]#

Bases: ClusterMixin, BaseEstimator

Hierarchical clustering on the fuzzy neighborhood distance \(d_{ij}=1-s_{ij}\).

Computes fuzzy_neighborhood_similarity() and runs agglomerative clustering (linkage = single, average or complete) on the resulting distances; the dendrogram is cut either at n_clusters or at distance_threshold. Clusters smaller than min_cluster_size are reported as outliers (label -1).

Attributes:
similarity_, linkage_matrix_ (SciPy format, for dendrograms), labels_