Downloads · 30 days
0
xNub/xgboost-fraud-detection-calibrated
xgboost-fraud-detection-calibrated is a machine learning model from xNub. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
This repository contains a production-ready, highly optimized, and calibrated XGBoost model designed for out-of-time financial fraud detection under severe class imbalance.
Downloads · 30 days
0
Access
Public
Updated Jun 16, 2026
Repo size
1.3 MB
Likes
0
Public
Click a slice to open those files.
.joblib1.3 MB · 100%
From the Hugging Face model README
This repository contains a production-ready, highly optimized, and calibrated XGBoost model designed for out-of-time financial fraud detection under severe class imbalance.
0.972740.722980.000%To use this model in your environment, download the consolidated .joblib artifact which bundles the model weights, the probability calibration mapping, and the exact production feature order.
import joblib
import xgboost as xgb
from huggingface_hub import hf_hub_download
# 1. Download from Hub
model_path = hf_hub_download(
repo_id="xNub/xgboost-fraud-detection-calibrated",
filename="calibrated_fraud_model.joblib"
)
# 2. Load the pipeline components
artifacts = joblib.load(model_path)
model = artifacts["model"]
calibrator = artifacts["calibrator"]
features = artifacts["features"]
# 3. Predict & Calibrate
# dmatrix = xgb.DMatrix(df[features])
# raw_predictions = model.predict(dmatrix)
# calibrated_probabilities = calibrator.predict(raw_predictions)