未验证 提交 86a60a14 编写于 作者: rictjo's avatar rictjo 提交者: GitHub

Update clustering.py

上级 c19cba2b
......@@ -1322,7 +1322,6 @@ def generate_clustering_labels ( distm:np.array , cmd:str='min' , labels:list[st
jhit = np.argmin([ np.abs(len(cluster_df.iloc[i])-2-n_clusters)\
for i in range(len(cluster_df)) ])
clabels_n = hierarch_df.iloc[jhit,:].values.tolist()
print ( len(set(clabels_n)) , jhit ) ; exit(1)
return ( clabels_n , clabels_o , hierarch_df , np.array( [level_values,screening] ) )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册