James McCool
commited on
Commit
·
8de9d92
1
Parent(s):
ae976c8
pulling the number up a bit
Browse files
global_func/predict_dupes.py
CHANGED
|
@@ -441,7 +441,7 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
| 441 |
# Scale between 0.01% (0.0001) and 50% (0.50)
|
| 442 |
min_val = portfolio['Finish_percentile'].min()
|
| 443 |
max_val = portfolio['Finish_percentile'].max()
|
| 444 |
-
portfolio['Finish_percentile'] = 0.0001 + (portfolio['Finish_percentile'] - min_val) / (max_val - min_val) * (0.50 - finish_rate_additive - 0.0001)
|
| 445 |
|
| 446 |
portfolio['Win%'] = portfolio['Win%'] * (1 - portfolio['Finish_percentile'])
|
| 447 |
portfolio['Win%'] = portfolio['Win%'].clip(lower=0, upper=max_allowed_win)
|
|
|
|
| 441 |
# Scale between 0.01% (0.0001) and 50% (0.50)
|
| 442 |
min_val = portfolio['Finish_percentile'].min()
|
| 443 |
max_val = portfolio['Finish_percentile'].max()
|
| 444 |
+
portfolio['Finish_percentile'] = 0.0001 + (portfolio['Finish_percentile'] - min_val) / (max_val - min_val) * (0.50 - (finish_rate_additive / 2) - 0.0001)
|
| 445 |
|
| 446 |
portfolio['Win%'] = portfolio['Win%'] * (1 - portfolio['Finish_percentile'])
|
| 447 |
portfolio['Win%'] = portfolio['Win%'].clip(lower=0, upper=max_allowed_win)
|