CultriX commited on
Commit
2f1c9f4
1 Parent(s): 04e697a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -88,13 +88,13 @@ def calculate_highest_combined_score(data, column):
88
  return column, {}
89
  scores = data[column].dropna().tolist()
90
  models = data['Model'].tolist()
91
- top_combinations = {r: [] for r in range(2, 5)}
92
- for r in range(2, 5):
93
  for combination in combinations(zip(scores, models), r):
94
  combined_score = sum(score for score, _ in combination)
95
  top_combinations[r].append((combined_score, tuple(model for _, model in combination)))
96
  top_combinations[r].sort(key=lambda x: x[0], reverse=True)
97
- top_combinations[r] = top_combinations[r][:3]
98
  return column, top_combinations
99
 
100
  # Modified function to display the results of the highest combined scores using st.dataframe
 
88
  return column, {}
89
  scores = data[column].dropna().tolist()
90
  models = data['Model'].tolist()
91
+ top_combinations = {r: [] for r in range(2, 6)}
92
+ for r in range(2, 6):
93
  for combination in combinations(zip(scores, models), r):
94
  combined_score = sum(score for score, _ in combination)
95
  top_combinations[r].append((combined_score, tuple(model for _, model in combination)))
96
  top_combinations[r].sort(key=lambda x: x[0], reverse=True)
97
+ top_combinations[r] = top_combinations[r][:5]
98
  return column, top_combinations
99
 
100
  # Modified function to display the results of the highest combined scores using st.dataframe