OneOneFour commited on
Commit
64f4a12
·
1 Parent(s): e62b57f

remove incorrect rmse refs

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +7 -7
src/streamlit_app.py CHANGED
@@ -54,13 +54,13 @@ if show_home:
54
  if current_scoring_mode not in scoring_options:
55
  current_scoring_mode = scoring_options[0]
56
 
57
- current_rmse_weight_percent = int(st.session_state.get("rmse_weight_percent", 80))
58
- current_rmse_weight_percent = max(0, min(100, current_rmse_weight_percent))
59
 
60
  selected_target = current_target
61
  scoring_mode = current_scoring_mode
62
- rmse_weight = current_rmse_weight_percent / 100.0
63
- ensemble_weight = 1.0 - rmse_weight
64
 
65
  def build_scored_table(input_df, add_rank=True):
66
  ranking_source = input_df if selected_target == "All targets" else input_df[input_df["rmse_target_str"] == selected_target]
@@ -138,7 +138,7 @@ if show_home:
138
  ascending = [True, True, True]
139
  else:
140
  scored_df["Score"] = (
141
- rmse_weight * scored_df["mean_runs_score"]
142
  + ensemble_weight * scored_df["ensemble_score"]
143
  )
144
  sort_columns = ["Score", "Mean Forward Model Runs", "Optimal Ensemble Size", "abbreviation"]
@@ -216,7 +216,7 @@ if show_home:
216
  else:
217
  score_basis = (
218
  "weighted blend of normalized forward-model-runs score and normalized ensemble-size score "
219
- f"(forward-runs weight {rmse_weight:.0%}, ensemble-size weight {ensemble_weight:.0%})"
220
  )
221
 
222
  if selected_benchmark == "All":
@@ -294,7 +294,7 @@ if show_home:
294
  min_value=0,
295
  max_value=100,
296
  step=5,
297
- key="rmse_weight_percent",
298
  help="Higher forward-runs weight prioritizes fewer model evaluations; higher ensemble-size weight prioritizes smaller ensembles.",
299
  )
300
 
 
54
  if current_scoring_mode not in scoring_options:
55
  current_scoring_mode = scoring_options[0]
56
 
57
+ current_fwdruns_weight_percent = int(st.session_state.get("fwdruns_weight_percent", 80))
58
+ current_fwdruns_weight_percent = max(0, min(100, current_fwdruns_weight_percent))
59
 
60
  selected_target = current_target
61
  scoring_mode = current_scoring_mode
62
+ fwdruns_weight = current_fwdruns_weight_percent / 100.0
63
+ ensemble_weight = 1.0 - fwdruns_weight
64
 
65
  def build_scored_table(input_df, add_rank=True):
66
  ranking_source = input_df if selected_target == "All targets" else input_df[input_df["rmse_target_str"] == selected_target]
 
138
  ascending = [True, True, True]
139
  else:
140
  scored_df["Score"] = (
141
+ fwdruns_weight * scored_df["mean_runs_score"]
142
  + ensemble_weight * scored_df["ensemble_score"]
143
  )
144
  sort_columns = ["Score", "Mean Forward Model Runs", "Optimal Ensemble Size", "abbreviation"]
 
216
  else:
217
  score_basis = (
218
  "weighted blend of normalized forward-model-runs score and normalized ensemble-size score "
219
+ f"(forward-runs weight {fwdruns_weight:.0%}, ensemble-size weight {ensemble_weight:.0%})"
220
  )
221
 
222
  if selected_benchmark == "All":
 
294
  min_value=0,
295
  max_value=100,
296
  step=5,
297
+ key="fwdruns_weight_percent",
298
  help="Higher forward-runs weight prioritizes fewer model evaluations; higher ensemble-size weight prioritizes smaller ensembles.",
299
  )
300