show results fix

This commit is contained in:
Alejandro Moreo Fernandez 2025-09-30 12:02:13 +02:00
parent 79f3709e6f
commit bd9f8e2cb4
2 changed files with 6 additions and 6 deletions

View File

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