Spaces:
Sleeping
Sleeping
James McCool
commited on
Commit
·
b40a05d
1
Parent(s):
19626d1
Refactor own_product calculation in predict_dupes.py to remove Contest_Size influence, streamlining the computation of player ownership metrics.
Browse files
global_func/predict_dupes.py
CHANGED
|
@@ -261,7 +261,7 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
| 261 |
portfolio['FLEX4_Own'] = portfolio.iloc[:,4].map(maps_dict['own_map']).astype('float32') / 100
|
| 262 |
portfolio['FLEX5_Own'] = portfolio.iloc[:,5].map(maps_dict['own_map']).astype('float32') / 100
|
| 263 |
|
| 264 |
-
portfolio['own_product'] = (portfolio[own_columns].product(axis=1))
|
| 265 |
portfolio['own_average'] = (portfolio['Own'].max() * .33) / 100
|
| 266 |
portfolio['own_sum'] = portfolio[own_columns].sum(axis=1)
|
| 267 |
portfolio['avg_own_rank'] = portfolio[dup_count_columns].mean(axis=1)
|
|
|
|
| 261 |
portfolio['FLEX4_Own'] = portfolio.iloc[:,4].map(maps_dict['own_map']).astype('float32') / 100
|
| 262 |
portfolio['FLEX5_Own'] = portfolio.iloc[:,5].map(maps_dict['own_map']).astype('float32') / 100
|
| 263 |
|
| 264 |
+
portfolio['own_product'] = (portfolio[own_columns].product(axis=1))
|
| 265 |
portfolio['own_average'] = (portfolio['Own'].max() * .33) / 100
|
| 266 |
portfolio['own_sum'] = portfolio[own_columns].sum(axis=1)
|
| 267 |
portfolio['avg_own_rank'] = portfolio[dup_count_columns].mean(axis=1)
|