File size: 2,553 Bytes
10ec54c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
  "project": "RazorShield",
  "timestamp": "2026-08-21T19:09:02.006171",
  "random_seed": 42,
  "transaction_model": {
    "model_type": "XGBoostClassifier",
    "saved_path": "C:\\Users\\HP\\projects\\RazorShield\\models\\transaction_model\\xgboost_model.joblib",
    "training_split": "train (413,378 rows)",
    "selected_threshold": 0.75,
    "feature_count": 28,
    "deployable_features": [
      "amount",
      "amount_log1p",
      "hour",
      "day_of_week",
      "is_weekend",
      "customer_txn_count_past",
      "customer_amount_mean_past",
      "customer_amount_std_past",
      "device_txn_count_past",
      "customer_amount_dev",
      "identity_available",
      "missing_p_email",
      "missing_r_email",
      "missing_addr1",
      "missing_device_info",
      "ProductCD",
      "card1",
      "card2",
      "card3",
      "card4",
      "card5",
      "card6",
      "addr1",
      "addr2",
      "P_emaildomain",
      "R_emaildomain",
      "DeviceType",
      "DeviceInfo"
    ],
    "validation_metrics": {
      "threshold": 0.75,
      "precision": 0.2604,
      "recall": 0.2877,
      "f1": 0.2734,
      "pr_auc": 0.1936,
      "roc_auc": 0.7997,
      "confusion_matrix": [
        [
          82979,
          2519
        ],
        [
          2196,
          887
        ]
      ],
      "tp": 887,
      "fp": 2519,
      "tn": 82979,
      "fn": 2196,
      "fpr": 0.0295,
      "fnr": 0.7123,
      "num_predicted_positives": 3406
    }
  },
  "spike_model": {
    "model_type": "XGBoostClassifier",
    "saved_path": "C:\\Users\\HP\\projects\\RazorShield\\models\\spike_model\\xgboost_spike_model.joblib",
    "training_split": "train scenarios (42 scenarios)",
    "selected_threshold": 0.2,
    "feature_count": 7,
    "deployable_features": [
      "rolling_txn_15m",
      "baseline_txn_15m",
      "velocity_ratio",
      "estimated_fraud_rate_15m",
      "baseline_fraud_rate",
      "estimated_fraud_rate_deviation",
      "amount_deviation"
    ],
    "oracle_features_excluded": [
      "rolling_fraud_rate_15m"
    ],
    "validation_metrics": {
      "threshold": 0.2,
      "precision": 0.7075,
      "recall": 0.8244,
      "f1": 0.7615,
      "pr_auc": 0.8321,
      "roc_auc": 0.9442,
      "confusion_matrix": [
        [
          19828,
          1931
        ],
        [
          995,
          4670
        ]
      ],
      "tp": 4670,
      "fp": 1931,
      "tn": 19828,
      "fn": 995,
      "fpr": 0.0887,
      "fnr": 0.1756,
      "num_predicted_positives": 6601
    }
  }
}