James McCool commited on
Commit
58073a4
·
1 Parent(s): 87e0fcb

Update ownership nerf logic in predict_dupes.py: implement sport-specific adjustments for CS2, allowing for differentiated ownership ratio calculations based on sport type, enhancing accuracy in duplication predictions.

Browse files
Files changed (1) hide show
  1. global_func/predict_dupes.py +4 -1
global_func/predict_dupes.py CHANGED
@@ -200,7 +200,10 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
200
  )
201
  percentile_cut_scalar = portfolio['median'].max() # Get scalar value
202
  if type_var == 'Classic':
203
- own_ratio_nerf = 2
 
 
 
204
  elif type_var == 'Showdown':
205
  own_ratio_nerf = 1.5
206
  portfolio['Finish_percentile'] = portfolio.apply(
 
200
  )
201
  percentile_cut_scalar = portfolio['median'].max() # Get scalar value
202
  if type_var == 'Classic':
203
+ if sport_var == 'CS2':
204
+ own_ratio_nerf = 2
205
+ elif sport_var != 'CS2':
206
+ own_ratio_nerf = 1.5
207
  elif type_var == 'Showdown':
208
  own_ratio_nerf = 1.5
209
  portfolio['Finish_percentile'] = portfolio.apply(