James McCool
commited on
Commit
·
4411256
1
Parent(s):
92c9001
Update dupes calculation in predict_dupes function to multiply ownership product by 10, refining the accuracy of duplicate predictions based on ownership metrics and Contest_Size.
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'] *
|
531 |
portfolio['dupes_calc'] = portfolio['dupes_calc'] * dupes_multiplier * (portfolio['Own'] / (100 + (Contest_Size / 1000)))
|
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'] * 10) * portfolio['avg_own_rank']) * Contest_Size + ((portfolio['salary'] - (50000 - portfolio['Own'])) / 50) - ((50000 - portfolio['salary']) / 50)
|
531 |
portfolio['dupes_calc'] = portfolio['dupes_calc'] * dupes_multiplier * (portfolio['Own'] / (100 + (Contest_Size / 1000)))
|
532 |
|
533 |
# Round and handle negative values
|