James McCool
commited on
Commit
·
1046e61
1
Parent(s):
70c1c8d
Enhance dupes calculation in predict_dupes function by adjusting the Finish_percentile formula to include ownership ratio and Contest_Size, improving the accuracy of duplicate predictions.
Browse files
global_func/predict_dupes.py
CHANGED
@@ -591,7 +591,7 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
591 |
portfolio['Win%'] = portfolio['Win%'] / portfolio['Win%'].max() * max_allowed_win
|
592 |
|
593 |
portfolio['Finish_percentile'] = portfolio['Finish_percentile'] + .005 + (.005 * (Contest_Size / 10000))
|
594 |
-
portfolio['Finish_percentile'] = portfolio['Finish_percentile'] * percentile_multiplier
|
595 |
portfolio['Win%'] = portfolio['Win%'] * (1 - portfolio['Finish_percentile'])
|
596 |
portfolio['Win%'] = portfolio['Win%'].clip(lower=0, upper=max_allowed_win)
|
597 |
|
|
|
591 |
portfolio['Win%'] = portfolio['Win%'] / portfolio['Win%'].max() * max_allowed_win
|
592 |
|
593 |
portfolio['Finish_percentile'] = portfolio['Finish_percentile'] + .005 + (.005 * (Contest_Size / 10000))
|
594 |
+
portfolio['Finish_percentile'] = portfolio['Finish_percentile'] * percentile_multiplier * (portfolio['Own'] / (100 + (Contest_Size / 1000)))
|
595 |
portfolio['Win%'] = portfolio['Win%'] * (1 - portfolio['Finish_percentile'])
|
596 |
portfolio['Win%'] = portfolio['Win%'].clip(lower=0, upper=max_allowed_win)
|
597 |
|