1
0
Fork 0

adding tweetsentnnp a gitea

This commit is contained in:
Alejandro Moreo Fernandez 2021-07-04 11:24:26 +02:00
parent f0e93692cc
commit f96469da18
1 changed files with 6 additions and 6 deletions

View File

@ -42,8 +42,8 @@ def quantification_models():
yield 'svmnkld', OneVsAll(SVMNKLD(args.svmperfpath)), svmperf_params
# methods added
# yield 'svmmae', OneVsAll(SVMAE(args.svmperfpath)), svmperf_params
# yield 'svmmrae', OneVsAll(SVMRAE(args.svmperfpath)), svmperf_params
yield 'svmmae', OneVsAll(SVMAE(args.svmperfpath)), svmperf_params
yield 'svmmrae', OneVsAll(SVMRAE(args.svmperfpath)), svmperf_params
yield 'hdy', OneVsAll(HDy(newLR())), lr_params
@ -199,14 +199,14 @@ if __name__ == '__main__':
optim_losses = ['mae', 'mrae']
datasets = qp.datasets.TWITTER_SENTIMENT_DATASETS_TRAIN
# models = quantification_models()
# qp.util.parallel(run, itertools.product(optim_losses, datasets, models), n_jobs=settings.N_JOBS)
models = quantification_models()
qp.util.parallel(run, itertools.product(optim_losses, datasets, models), n_jobs=settings.N_JOBS)
models = quantification_cuda_models()
qp.util.parallel(run, itertools.product(optim_losses, datasets, models), n_jobs=settings.CUDA_N_JOBS)
# models = quantification_ensembles()
# qp.util.parallel(run, itertools.product(optim_losses, datasets, models), n_jobs=1)
models = quantification_ensembles()
qp.util.parallel(run, itertools.product(optim_losses, datasets, models), n_jobs=1)
#shutil.rmtree(args.checkpointdir, ignore_errors=True)