James McCool
commited on
Commit
·
a1db6b9
1
Parent(s):
64064b9
Add support for 7 players in League of Legends (LOL) in predict_dupes function, updating salary cap and player column logic to accommodate sport-specific requirements, enhancing prediction accuracy.
Browse files
global_func/predict_dupes.py
CHANGED
|
@@ -152,6 +152,10 @@ def predict_dupes_vectorized(portfolio, maps_dict, site_var, type_var, Contest_S
|
|
| 152 |
num_players = 6
|
| 153 |
salary_cap = 50000
|
| 154 |
player_cols = list(range(6))
|
|
|
|
|
|
|
|
|
|
|
|
|
| 155 |
else:
|
| 156 |
num_players = len([col for col in portfolio.columns if col not in ['salary', 'median', 'Own']])
|
| 157 |
salary_cap = 50000
|
|
|
|
| 152 |
num_players = 6
|
| 153 |
salary_cap = 50000
|
| 154 |
player_cols = list(range(6))
|
| 155 |
+
elif sport_var == 'LOL':
|
| 156 |
+
num_players = 7
|
| 157 |
+
salary_cap = 50000
|
| 158 |
+
player_cols = list(range(7))
|
| 159 |
else:
|
| 160 |
num_players = len([col for col in portfolio.columns if col not in ['salary', 'median', 'Own']])
|
| 161 |
salary_cap = 50000
|