Skip to content

Commit

Permalink
evaluation - fixed script creating LaTeX table: lack of best metric…
Browse files Browse the repository at this point in the history
… selection with incomplete data corrected
  • Loading branch information
rayvburn committed May 7, 2024
1 parent 46f0e41 commit 24bcaf8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions srpb_evaluation/scripts/create_latex_table_from_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,11 @@ def get_metric_value_for_planner(
metric_values_among_planners = []
for planner_name in planner_names:
metric_val = get_metric_value_for_planner(results[scenario_num]['results'], planner_name, metric_id)
# there might be incorrect data:
# * 'nan' will break the min/max selection (nan will be returned)
# * 'None' cannot be compared with floats
if math.isnan(metric_val):
continue
metric_values_among_planners.append(metric_val)

# select the best metric - the one with the smallest or largest value (excluding NaNs)
Expand Down

0 comments on commit 24bcaf8

Please sign in to comment.