Downloads · 30 days
0
arun-gharami/lead-ai-fraud-shield
lead-ai-fraud-shield is a tabular classification model from arun-gharami. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for scikit-learn. The card lists the license as apache-2.0.
Model repo target: arun-gharami/lead-ai-fraud-shield
Downloads · 30 days
0
Access
Public
Updated Apr 28, 2026
Repo size
8.2 MB
Likes
0
Public
Click a slice to open those files.
.joblib8.2 MB · 96%
From the Hugging Face model README
Model repo target: arun-gharami/lead-ai-fraud-shield
Lead.AI Fraud Shield predicts transaction fraud risk for stores, e-commerce, and payment businesses.
Service message: "Check transaction risk before accepting payment."
Low RiskMedium RiskHigh RiskEach prediction returns model confidence and SHAP-style explanation text for top risk drivers.
transaction_amounttransaction_hourpayment_methodcustomer_ageaccount_age_daysprevious_ordersmerchant_risk_scoredevice_risk_scorelocation_risk_scoredata/data.csv - synthetic Kaggle-ready datasetdataset/README.md - dataset cardtrain_model.py - training pipeline and metrics exportmodel/model.joblib - serialized model artifact (generated after training)model/metrics.json - evaluation report (generated after training)app.py - Gradio demo for live scoring + CSV uploadsample_api_usage.py - API integration examplepush_to_huggingface.py - publish project to Hugging Face model repopip install -r requirements.txt
python train_model.py
python app.py
Input transaction:
{
"transaction_amount": 1200,
"transaction_hour": 1,
"payment_method": "crypto",
"customer_age": 22,
"account_age_days": 8,
"previous_orders": 0,
"merchant_risk_score": 0.82,
"device_risk_score": 0.91,
"location_risk_score": 0.88
}
Output:
{
"risk_label": "High Risk",
"confidence": "94.00%",
"explanation": "Top risk drivers include device score, account age, and payment method risk."
}
0.803080/20 stratifiedmodel/metrics.jsonUse sample_api_usage.py and replace the endpoint with your Hugging Face Inference Endpoint or Gradio Space URL.
export HF_TOKEN=hf_xxx
python push_to_huggingface.py