James McCool commited on
Commit
b545121
·
1 Parent(s): bd3e305
Files changed (1) hide show
  1. global_func/reassess_edge.py +0 -2
global_func/reassess_edge.py CHANGED
@@ -48,11 +48,9 @@ def reassess_dupes(row: pd.Series, salary_max: int) -> float:
48
  return math.ceil(
49
  row['Dupes'] +
50
  (
51
- # Salary component: base +2 + salary_diff/200 for every $100 above threshold
52
  (max(0, (row['salary'] - (salary_max - 500)) / 100) * (2 + (row['salary_diff'] / 200)) *
53
  (1 if row['salary_diff'] >= 0 else -1)) +
54
 
55
- # Ownership component: direct negative/positive effect
56
  (row['own_diff'] / 10)
57
  )
58
  )
 
48
  return math.ceil(
49
  row['Dupes'] +
50
  (
 
51
  (max(0, (row['salary'] - (salary_max - 500)) / 100) * (2 + (row['salary_diff'] / 200)) *
52
  (1 if row['salary_diff'] >= 0 else -1)) +
53
 
 
54
  (row['own_diff'] / 10)
55
  )
56
  )