James McCool commited on
Commit
fb33fb9
·
1 Parent(s): 87bb04e

Adjust lineups_to_remove calculation in exposure_spread function to apply a 105% factor, refining accuracy in lineup adjustments based on player exposure and target.

Browse files
Files changed (1) hide show
  1. global_func/exposure_spread.py +1 -1
global_func/exposure_spread.py CHANGED
@@ -240,7 +240,7 @@ def exposure_spread(working_frame, exposure_player, exposure_target, exposure_st
240
  player_exposure = player_mask.sum() / len(working_frame)
241
 
242
  # find the number of lineups that need to be removed to reach the target exposure
243
- lineups_to_remove = ((player_exposure - exposure_target) * len(working_frame)) * 1.25
244
 
245
  # isolate the rows that contain the player
246
  player_rows = working_frame[player_mask]
 
240
  player_exposure = player_mask.sum() / len(working_frame)
241
 
242
  # find the number of lineups that need to be removed to reach the target exposure
243
+ lineups_to_remove = ((player_exposure - exposure_target) * len(working_frame)) * 1.05
244
 
245
  # isolate the rows that contain the player
246
  player_rows = working_frame[player_mask]