James McCool commited on
Commit
21a77f8
·
1 Parent(s): 05170c5

Adjust stack multipliers in sim_contest function of app.py to improve accuracy in projection calculations. The multiplier values for team participation have been halved, enhancing the precision of contest simulations based on the number of teams playing.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -104,8 +104,8 @@ def sim_contest(Sim_size, seed_frame, maps_dict, Contest_Size, teams_playing_cou
104
 
105
  # Calculate stack multipliers first
106
  stack_multiplier = np.ones(fp_random.shape[0]) # Start with no bonus
107
- stack_multiplier += np.where(fp_random[:, 12] == 4, 0.05 * (teams_playing_count - 8), 0)
108
- stack_multiplier += np.where(fp_random[:, 12] >= 5, 0.05 * (teams_playing_count - 12), 0)
109
 
110
  # Apply multipliers to both loc and scale in the normal distribution
111
  base_projections = np.sum(np.random.normal(
 
104
 
105
  # Calculate stack multipliers first
106
  stack_multiplier = np.ones(fp_random.shape[0]) # Start with no bonus
107
+ stack_multiplier += np.where(fp_random[:, 12] == 4, 0.025 * (teams_playing_count - 8), 0)
108
+ stack_multiplier += np.where(fp_random[:, 12] >= 5, 0.025 * (teams_playing_count - 12), 0)
109
 
110
  # Apply multipliers to both loc and scale in the normal distribution
111
  base_projections = np.sum(np.random.normal(