You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I make a run with cfg.dataset.task_type = 'regression', the code crashes at the end of the run. The error message is:
Traceback (most recent call last):
File "main_pyg.py", line 55, in <module>
agg_runs(cfg.out_dir, cfg.metric_best)
File "~/Code/GraphGym/graphgym/utils/agg_runs.py", line 100, in agg_runs
[stats[metric] for stats in stats_list])
File "~/Code/GraphGym/graphgym/utils/agg_runs.py", line 100, in <listcomp>
[stats[metric] for stats in stats_list])
KeyError: 'accuracy'
The problem seems to be that accuracy is not a metric logged for regression tasks. Here are the relevant lines in agg_runs.py:
In order to perform the regression, it will also be necessary to add metric_agg: argmin inside the yaml file in order to get the desired results with MSE.
When I make a run with
cfg.dataset.task_type = 'regression'
, the code crashes at the end of the run. The error message is:The problem seems to be that
accuracy
is not a metric logged for regression tasks. Here are the relevant lines inagg_runs.py
:Here's a fix:
The text was updated successfully, but these errors were encountered: