forked from moreo/QuaPy
stability
This commit is contained in:
parent
2d6ac4af0d
commit
7e2237abe8
|
@ -33,11 +33,7 @@ if __name__ == '__main__':
|
||||||
csv.write(f'Method\tDataset\tBandwidth\tMAE\tMRAE\tKLD\n')
|
csv.write(f'Method\tDataset\tBandwidth\tMAE\tMRAE\tKLD\n')
|
||||||
|
|
||||||
with open(global_result_path+'.csv', 'at') as csv:
|
with open(global_result_path+'.csv', 'at') as csv:
|
||||||
# four semeval dataset share the training, so it is useless to optimize hyperparameters four times;
|
for bandwidth in np.linspace(0.01, 0.2, 20):
|
||||||
# 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 dataset in qp.datasets.TWITTER_SENTIMENT_DATASETS_TEST:
|
for dataset in qp.datasets.TWITTER_SENTIMENT_DATASETS_TEST:
|
||||||
print('init', dataset)
|
print('init', dataset)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue