James McCool
commited on
Commit
·
7905ae8
1
Parent(s):
4d63f87
Adjust 'Finish_percentile' calculation in predict_dupes.py to halve the result for improved accuracy. This change refines the formula, ensuring more precise percentile outcomes by modifying the final output of the calculation.
Browse files
global_func/predict_dupes.py
CHANGED
@@ -328,7 +328,7 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
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 |
|
|
|
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)) / 2,
|
332 |
axis=1
|
333 |
)
|
334 |
|