James McCool
commited on
Commit
·
bfb331d
1
Parent(s):
77ebf37
Refine dupes calculation in predict_dupes function by adjusting the salary ratio from 50000 to 49500, improving accuracy in duplicate predictions based on ownership metrics.
Browse files
global_func/predict_dupes.py
CHANGED
@@ -527,7 +527,7 @@ def predict_dupes(portfolio, maps_dict, site_var, type_var, Contest_Size, streng
|
|
527 |
print(portfolio[['Own', 'own_product', 'own_average', 'own_sum', 'avg_own_rank']].head(10))
|
528 |
|
529 |
# Calculate dupes formula
|
530 |
-
portfolio['dupes_calc'] = (portfolio['own_product'] * portfolio['avg_own_rank']) * (portfolio['Own'] / (100 + (Contest_Size / 1000))) * Contest_Size + ((portfolio['salary'] - (50000 - portfolio['Own'])) / 100) - ((
|
531 |
portfolio['dupes_calc'] = portfolio['dupes_calc'] * dupes_multiplier
|
532 |
|
533 |
# Round and handle negative values
|
|
|
527 |
print(portfolio[['Own', 'own_product', 'own_average', 'own_sum', 'avg_own_rank']].head(10))
|
528 |
|
529 |
# Calculate dupes formula
|
530 |
+
portfolio['dupes_calc'] = (portfolio['own_product'] * portfolio['avg_own_rank']) * (portfolio['Own'] / (100 + (Contest_Size / 1000))) * Contest_Size + ((portfolio['salary'] - (50000 - portfolio['Own'])) / 100) - ((49500 - portfolio['salary']) / 100)
|
531 |
portfolio['dupes_calc'] = portfolio['dupes_calc'] * dupes_multiplier
|
532 |
|
533 |
# Round and handle negative values
|