James McCool
commited on
Commit
·
2650424
1
Parent(s):
a1c389d
Add print statement to display the top 10 SE Scores in predict_dupes function for debugging purposes
Browse files
global_func/predict_dupes.py
CHANGED
|
@@ -444,6 +444,8 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
| 444 |
portfolio['Geomean'] = np.power((portfolio[own_columns] * 100).product(axis=1), 1 / len(own_columns))
|
| 445 |
portfolio['SE Score'] = ((portfolio['median'] - portfolio['median'].mean()) * (portfolio['Weighted Own'] - portfolio['Weighted Own'].mean()))
|
| 446 |
portfolio['SE Score'] = (np.tanh(portfolio['SE Score'] / portfolio['SE Score'].std()) + 1) / 2
|
|
|
|
|
|
|
| 447 |
|
| 448 |
# Calculate similarity score based on actual player selection
|
| 449 |
portfolio['Diversity'] = calculate_player_similarity_score_chunked(portfolio, player_columns)
|
|
|
|
| 444 |
portfolio['Geomean'] = np.power((portfolio[own_columns] * 100).product(axis=1), 1 / len(own_columns))
|
| 445 |
portfolio['SE Score'] = ((portfolio['median'] - portfolio['median'].mean()) * (portfolio['Weighted Own'] - portfolio['Weighted Own'].mean()))
|
| 446 |
portfolio['SE Score'] = (np.tanh(portfolio['SE Score'] / portfolio['SE Score'].std()) + 1) / 2
|
| 447 |
+
|
| 448 |
+
print(portfolio['SE Score'].head(10))
|
| 449 |
|
| 450 |
# Calculate similarity score based on actual player selection
|
| 451 |
portfolio['Diversity'] = calculate_player_similarity_score_chunked(portfolio, player_columns)
|