demoaccta commited on
Commit
4b9e4c4
Β·
verified Β·
1 Parent(s): 292a83a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,8 +94,8 @@ def build_feature_row(d):
94
  row["Amount Deviation From History"] = 1
95
  row["Product Category Diversity"] = 1.0
96
  row["Amount zscore"] = 0.2
97
- row["Amount Age Interaction"] = amt * age
98
- row["Amount Velocity Interaction"] = amt * row["Avg Daily Transaction Velocity"]
99
  row["New Account"] = int(acc_days < 30)
100
  row["New Account High Value"] = int(row["New Account"] and amt > 500)
101
  row["Weekend High Value"] = int(row["Is Weekend"] and amt > 500)
 
94
  row["Amount Deviation From History"] = 1
95
  row["Product Category Diversity"] = 1.0
96
  row["Amount zscore"] = 0.2
97
+ row["Amount Age Interaction"] = ( amt * age ) / 100
98
+ row["Amount Velocity Interaction"] = amt * row["Avg Daily Transaction Velocity"] / 10
99
  row["New Account"] = int(acc_days < 30)
100
  row["New Account High Value"] = int(row["New Account"] and amt > 500)
101
  row["Weekend High Value"] = int(row["Is Weekend"] and amt > 500)