James McCool
commited on
Commit
·
4d63f87
1
Parent(s):
a7868ee
Refine 'Finish_percentile' calculation in predict_dupes.py by adjusting the denominator to improve accuracy. This change enhances the formula by using a fixed multiplier for median values, ensuring more precise percentile results.
Browse files
global_func/predict_dupes.py
CHANGED
|
@@ -327,8 +327,8 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
| 327 |
elif type_var == 'Showdown':
|
| 328 |
own_ratio_nerf = 1.5
|
| 329 |
portfolio['Finish_percentile'] = portfolio.apply(
|
| 330 |
-
lambda row: .0005 if (row['own_ratio'] - own_ratio_nerf) / ((
|
| 331 |
-
else (row['own_ratio'] - own_ratio_nerf) / ((
|
| 332 |
axis=1
|
| 333 |
)
|
| 334 |
|
|
|
|
| 327 |
elif type_var == 'Showdown':
|
| 328 |
own_ratio_nerf = 1.5
|
| 329 |
portfolio['Finish_percentile'] = portfolio.apply(
|
| 330 |
+
lambda row: .0005 if (row['own_ratio'] - own_ratio_nerf) / ((5 * (row['median'] / percentile_cut_scalar)) / 3) < .0005
|
| 331 |
+
else (row['own_ratio'] - own_ratio_nerf) / ((5 * (row['median'] / percentile_cut_scalar)) / 3),
|
| 332 |
axis=1
|
| 333 |
)
|
| 334 |
|