show results fix
This commit is contained in:
parent
79f3709e6f
commit
bd9f8e2cb4
|
|
@ -17,8 +17,8 @@ SEED = 1
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print(qp.datasets.UCI_MULTICLASS_DATASETS)
|
print(qp.datasets.UCI_MULTICLASS_DATASETS)
|
||||||
|
for optim in ['mae', 'mrae']:
|
||||||
table = LatexTable()
|
table = LatexTable()
|
||||||
for optim in ['mae']:
|
|
||||||
result_dir = f'results/ucimulti/{optim}'
|
result_dir = f'results/ucimulti/{optim}'
|
||||||
|
|
||||||
for method in METHODS:
|
for method in METHODS:
|
||||||
|
|
@ -30,8 +30,8 @@ if __name__ == '__main__':
|
||||||
local_result_path = global_result_path + '_' + dataset
|
local_result_path = global_result_path + '_' + dataset
|
||||||
if os.path.exists(local_result_path + '.dataframe'):
|
if os.path.exists(local_result_path + '.dataframe'):
|
||||||
report = pd.read_csv(local_result_path+'.dataframe')
|
report = pd.read_csv(local_result_path+'.dataframe')
|
||||||
print(f'{method}\t{dataset}\t{report["mae"].mean():.5f}')
|
print(f'{method}\t{dataset}\t{report[optim].mean():.5f}')
|
||||||
table.add(benchmark=dataset, method=method, v=report["mae"].values)
|
table.add(benchmark=dataset, method=method, v=report[optim].values)
|
||||||
else:
|
else:
|
||||||
print(dataset, 'not found for method', method)
|
print(dataset, 'not found for method', method)
|
||||||
table.latexPDF(f'./tables/{optim}.pdf', landscape=False)
|
table.latexPDF(f'./tables/{optim}.pdf', landscape=False)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue