Spaces:
Running
Running
James McCool
commited on
Commit
·
d5200c6
1
Parent(s):
21a77f8
Update stack multipliers in sim_contest function of app.py to enforce maximum limits, improving accuracy in projection calculations. Adjusted multipliers for team participation to ensure they do not exceed specified thresholds, enhancing the precision of contest simulations.
Browse files
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.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(
|
|
|
104 |
|
105 |
# Calculate stack multipliers first
|
106 |
stack_multiplier = np.ones(fp_random.shape[0]) # Start with no bonus
|
107 |
+
stack_multiplier += np.minimum(0.10, np.where(fp_random[:, 12] == 4, 0.025 * (teams_playing_count - 8), 0))
|
108 |
+
stack_multiplier += np.minimum(0.15, 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(
|