def compute_local_affinity(V):
global damping
cluster_args = {"damping": damping}
cluster = cluster_clf(**cluster_args)
DV = cdist(V, V, metric='cosine')
z_labels = cluster.fit_predict(DV)
# print "{} unique labels found".format(np.unique(z_labels).shape)
return V, z_labels
评论列表
文章目录