Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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)
|