James McCool
commited on
Commit
·
182bd5f
1
Parent(s):
c676261
adjusting own_baseline into finish_percentile calc
Browse files
global_func/predict_dupes.py
CHANGED
|
@@ -432,7 +432,7 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
| 432 |
portfolio['Win%'] = portfolio['Win%'] / portfolio['Win%'].max() * max_allowed_win
|
| 433 |
|
| 434 |
portfolio['Finish_percentile'] = portfolio['Finish_percentile'] + .005 + (.005 * (Contest_Size / 10000))
|
| 435 |
-
portfolio['Finish_percentile'] = portfolio['Finish_percentile'] * percentile_multiplier * (portfolio['Own'] / (
|
| 436 |
|
| 437 |
# Check if max Finish_percentile is greater than 50% and scale if needed
|
| 438 |
max_finish_percentile = portfolio['Finish_percentile'].max()
|
|
|
|
| 432 |
portfolio['Win%'] = portfolio['Win%'] / portfolio['Win%'].max() * max_allowed_win
|
| 433 |
|
| 434 |
portfolio['Finish_percentile'] = portfolio['Finish_percentile'] + .005 + (.005 * (Contest_Size / 10000))
|
| 435 |
+
portfolio['Finish_percentile'] = portfolio['Finish_percentile'] * percentile_multiplier * (portfolio['Own'] / (own_baseline + (Contest_Size / 1000)))
|
| 436 |
|
| 437 |
# Check if max Finish_percentile is greater than 50% and scale if needed
|
| 438 |
max_finish_percentile = portfolio['Finish_percentile'].max()
|