Skip to content

Commit

Permalink
set training_holdout as the default when available
Browse files Browse the repository at this point in the history
  • Loading branch information
brifordwylie committed Mar 27, 2024
1 parent af01d01 commit 996498f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions applications/aws_dashboard/pages/models/callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ def generate_inference_dropdown_figure(selected_rows, table_data):
if not inference_runs:
return [], None

# Set the first inference run as the selected value
first_inference_run = inference_runs[0]
# Set "training_holdout" as the default, if that doesn't exist, set the first
default_inference_run = "training_holdout" if "training_holdout" in inference_runs else inference_runs[0]

# Return the options for the dropdown and the selected value
return inference_runs, first_inference_run
return inference_runs, default_inference_run


# Updates the model metrics when a model row is selected
Expand Down

0 comments on commit 996498f

Please sign in to comment.