James McCool
commited on
Commit
·
a92df2e
1
Parent(s):
37de66c
Refactor ownership ratio adjustments in predict_dupes function to streamline logic for CS2 and LOL, ensuring consistent application of nerf values based on sport type, which enhances prediction accuracy.
Browse files
global_func/predict_dupes.py
CHANGED
@@ -568,9 +568,11 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
568 |
)
|
569 |
percentile_cut_scalar = portfolio['median'].max() # Get scalar value
|
570 |
if type_var == 'Classic':
|
571 |
-
if sport_var == 'CS2'
|
572 |
own_ratio_nerf = 2
|
573 |
-
elif sport_var
|
|
|
|
|
574 |
own_ratio_nerf = 1.5
|
575 |
elif type_var == 'Showdown':
|
576 |
own_ratio_nerf = 1.5
|
|
|
568 |
)
|
569 |
percentile_cut_scalar = portfolio['median'].max() # Get scalar value
|
570 |
if type_var == 'Classic':
|
571 |
+
if sport_var == 'CS2':
|
572 |
own_ratio_nerf = 2
|
573 |
+
elif sport_var == 'LOL':
|
574 |
+
own_ratio_nerf = 2
|
575 |
+
else:
|
576 |
own_ratio_nerf = 1.5
|
577 |
elif type_var == 'Showdown':
|
578 |
own_ratio_nerf = 1.5
|