1
0

comment out config.

This commit is contained in:
Nathan TeBlunthuis 2024-12-19 23:32:16 -08:00
parent 8cb75c8354
commit 638ab78375

View File

@ -6,7 +6,7 @@ from similarities_helper import tfidf_dataset, build_weekly_tfidf_dataset, selec
from functools import partial
def _tfidf_wrapper(func, inpath, outpath, topN, term_colname, exclude, included_subreddits, included_terms=None, min_df=None, max_df=None):
spark = SparkSession.builder.config(map={'spark.executor.memory':'900g','spark.executor.cores':128}).getOrCreate()
#spark = SparkSession.builder.config(map={'spark.executor.memory':'900g','spark.executor.cores':128}).getOrCreate()
df = spark.read.parquet(inpath)
df = df.repartition(128*15, ['subreddit',term_colname])
df = df.filter(~ f.col(term_colname).isin(exclude))