]> code.communitydata.science - cdsc_reddit.git/blobdiff - clustering/clustering.py
bugfixes in clustering selection.
[cdsc_reddit.git] / clustering / clustering.py
index cac57309e5444c36fc20905acb3fe7ee585b832a..153a5c940d520d60fc27acfff06a6bd70107e909 100755 (executable)
@@ -24,7 +24,7 @@ def _affinity_clustering(mat, subreddits, output, damping=0.9, max_iter=100000,
     preference_quantile: parameter controlling how many clusters to make. higher values = more clusters. 0.85 is a good value with 3000 subreddits.
     damping: parameter controlling how iterations are merged. Higher values make convergence faster and more dependable. 0.85 is a good value for the 10000 subreddits by author. 
     '''
-    print(f"damping:{damping}; convergenceIter:{convergence_iter}; preferenceQuantile:{preference_quantilne}")
+    print(f"damping:{damping}; convergenceIter:{convergence_iter}; preferenceQuantile:{preference_quantile}")
 
     preference = np.quantile(mat,preference_quantile)
 

Community Data Science Collective || Want to submit a patch?