Predictive Machine Learning & Risk Analytics
Collection
Cost-sensitive fraud triage systems, calibrated clinical risk models, and multivariate sensor telemetry. β’ 7 items β’ Updated
A calibrated tabular gradient boosting model trained to evaluate financial transaction telemetry and predict fraudulent activity with cost-sensitive decision boundaries.
In real-world payment networks, false positives (locking legitimate accounts) degrade user experience, while false negatives cause direct chargeback liabilities.
This model outputs calibrated probability estimates ($P(\text{fraud})$) that can be plugged into custom utility functions:
| Feature | Type | Description |
|---|---|---|
amount_normalized |
float | Transaction value relative to customer 30-day baseline. |
velocity_score |
float | Number of transactions within the trailing 10-minute window. |
geo_distance_delta |
float | Physical distance difference from preceding transaction location. |
high_risk_mcc |
int | Binary indicator for high-risk Merchant Category Codes (0 or 1). |
entropy_score |
float | Statistical deviation from customer category spending distribution. |
import joblib
from huggingface_hub import hf_hub_download
# Download model weights from Hugging Face
model_path = hf_hub_download(
repo_id="Jayan12321/financial-fraud-risk-scorer",
filename="model.joblib"
)
# Load pipeline
classifier = joblib.load(model_path)
# Predict risk score on sample transaction
# [amount, velocity, geo_distance, high_risk_mcc, entropy]
transaction = [[2.4, 3.1, 1.8, 1, 0.9]]
prob_fraud = classifier.predict_proba(transaction)[0, 1]
print(f"Fraud Risk Score: {prob_fraud:.4f}")