James McCool commited on
Commit
e60e8c4
·
1 Parent(s): aa2e7d9

Refine lineups_to_remove calculation in exposure_spread function to adjust for non-zero target exposure, improving accuracy in lineup adjustments by applying a 75% reduction factor.

Browse files
Files changed (1) hide show
  1. global_func/exposure_spread.py +2 -1
global_func/exposure_spread.py CHANGED
@@ -263,7 +263,8 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
263
  if exposure_target == 0:
264
  lineups_to_remove = (player_exposure - exposure_target) * len(working_frame)
265
  else:
266
- lineups_to_remove = (player_exposure - math.ceil(exposure_target / 2)) * len(working_frame)
 
267
 
268
  # isolate the rows that contain the player
269
  player_rows = working_frame[player_mask]
 
263
  if exposure_target == 0:
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 * .75)
268
 
269
  # isolate the rows that contain the player
270
  player_rows = working_frame[player_mask]