From 7e2237abe8fbbd1d07f7e136f4bdf6aef9a9a3a0 Mon Sep 17 00:00:00 2001 From: Alejandro Moreo Date: Tue, 5 Sep 2023 16:57:43 +0200 Subject: [PATCH] stability --- distribution_matching/tweets_bandwidth_sensibility.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/distribution_matching/tweets_bandwidth_sensibility.py b/distribution_matching/tweets_bandwidth_sensibility.py index f3564fc..245a1b9 100644 --- a/distribution_matching/tweets_bandwidth_sensibility.py +++ b/distribution_matching/tweets_bandwidth_sensibility.py @@ -33,11 +33,7 @@ if __name__ == '__main__': csv.write(f'Method\tDataset\tBandwidth\tMAE\tMRAE\tKLD\n') with open(global_result_path+'.csv', 'at') as csv: - # four semeval dataset share the training, so it is useless to optimize hyperparameters four times; - # this variable controls that the mod sel has already been done, and skip this otherwise - semeval_trained = False - - for bandwidth in np.linspace(0.01, 0.2, 20): + for bandwidth in np.linspace(0.01, 0.2, 20): for dataset in qp.datasets.TWITTER_SENTIMENT_DATASETS_TEST: print('init', dataset)