Skip to content
Snippets Groups Projects
Commit 4c93e8db authored by DIANE's avatar DIANE
Browse files

HDBSCAN

parent bbcc7763
No related branches found
No related tags found
No related merge requests found
......@@ -77,6 +77,8 @@ class Hdbscan:
"""
def __init__(self, data):
from sklearn.cluster import HDBSCAN
"""Initiate the HDBSCAN calculation
Args:
......@@ -405,6 +407,7 @@ class AP:
self.__x = np.array(X)
# Fit PCA model
from sklearn.cluster import AffinityPropagation
self.M = AffinityPropagation(damping=0.5, max_iter=200, convergence_iter=15, copy=True, preference=None,
affinity='euclidean', verbose=False, random_state=None)
self.M.fit(self.__x)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment