James McCool
commited on
Commit
·
45f0bb9
1
Parent(s):
e60e8c4
Adjust lineups_to_remove calculation in exposure_spread function to apply a 150% factor, enhancing accuracy in lineup adjustments for non-zero target exposure.
Browse files
global_func/exposure_spread.py
CHANGED
|
@@ -264,7 +264,7 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
|
|
| 264 |
lineups_to_remove = (player_exposure - exposure_target) * len(working_frame)
|
| 265 |
else:
|
| 266 |
lineups_to_remove = (player_exposure - exposure_target) * len(working_frame)
|
| 267 |
-
lineups_to_remove = math.ceil(lineups_to_remove * .
|
| 268 |
|
| 269 |
# isolate the rows that contain the player
|
| 270 |
player_rows = working_frame[player_mask]
|
|
|
|
| 264 |
lineups_to_remove = (player_exposure - exposure_target) * len(working_frame)
|
| 265 |
else:
|
| 266 |
lineups_to_remove = (player_exposure - exposure_target) * len(working_frame)
|
| 267 |
+
lineups_to_remove = math.ceil(lineups_to_remove * 1.5)
|
| 268 |
|
| 269 |
# isolate the rows that contain the player
|
| 270 |
player_rows = working_frame[player_mask]
|