]> code.communitydata.science - cdsc_reddit.git/blobdiff - similarities/cosine_similarities.py
Some improvements to run affinity clustering on larger dataset and
[cdsc_reddit.git] / similarities / cosine_similarities.py
index ae080d5d6b614dac46de8a45ce5237cd5d94bd53..54b95992d33507a3c9f6dcae0fd96e77175913f0 100644 (file)
@@ -3,7 +3,7 @@ from pyspark.sql import SparkSession
 import pandas as pd
 import fire
 from pathlib import Path
-from similarities_helper import prep_tfidf_entries, read_tfidf_matrix, select_topN_subreddits
+from similarities_helper import prep_tfidf_entries, read_tfidf_matrix, select_topN_subreddits, column_similarities
 
 
 def cosine_similarities(infile, term_colname, outfile, min_df=None, included_subreddits=None, topN=500, exclude_phrases=False):

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