CoolFace
Modelpublic

votrananhquan/fraud-detection-model

sourceHugging Facemitupdated 12d agoView on Hugging Face
0likes
Model Card

Credit Card Fraud Detection — Champion Model

Model Description

Champion model for credit card fraud detection on the Kaggle Credit Card Fraud Dataset. Registered in MLflow Registry as fraud-detection-model@production.

Trained under a leak-free protocol: stratified 64/16/20 train/validation/test split, the Amount scaler fitted on the training split only, early stopping watched on validation, and the champion selected by validation PR-AUC. The test split influences no decision and is scored once for reporting.

Performance

Selected on validation (n/a rows):

MetricValue
PR-AUC0.7407
Recall0.8354
Precision0.5238
F10.6439

Reported on the held-out test split (n/a rows):

MetricValue
PR-AUC0.7462
Recall0.8878
Precision0.4555
F10.6021
True positives87
False positives104
False negatives11

Usage

python
import joblib
import numpy as np

model = joblib.load("baseline_lr.pkl")
# features: V1-V28 (PCA, pass through), Amount scaled with the TRAINING-split
# StandardScaler: mu=87.9702, sigma=245.5762
X = np.array([[...]])  # shape (1, 29)
proba = model.predict_proba(X)[:, 1]  # fraud probability

MLflow Tracking

  • Run ID: 176f185e3b7a400dba35d6f841de31e2
  • Model version: 3
  • Registered name: fraud-detection-model