Downloads · 30 days
0
QuentinJassey/epicoin-fraud-detection-enriched
epicoin-fraud-detection-enriched is a tabular classification model from QuentinJassey. 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 xgboost.
Modèle de détection de fraude enrichi pour EpiCoin, entraîné sur 960 transactions avec 19 features enrichies.
Downloads · 30 days
0
Access
Public
Updated Jan 26, 2026
Repo size
468 KB
Likes
0
Public
Click a slice to open those files.
.pkl309 KB · 97%
From the Hugging Face model README
Modèle de détection de fraude enrichi pour EpiCoin, entraîné sur 960 transactions avec 19 features enrichies.
| Métrique | Valeur |
|---|---|
| Accuracy | 99.59% |
| AUC-ROC | 0.980 |
| Latence | 0.19 ms |
| Model | xgboost |
| Training Date | 2026-01-23T00:07:30.575176 |
Les 19 features suivantes sont utilisées :
- amount_numeric
- fraud_score
- hour
- day_of_week
- execution_delay
- transaction_type_encoded
- direction_encoded
- country_encoded
- city_encoded
- provider_encoded
- status_encoded
- os_name_encoded
- type_encoded
- user_avg_amount
- user_std_amount
- user_tx_count
- user_fraud_ratio
- amount_deviation
- device_tx_count
import pickle
from huggingface_hub import hf_hub_download
# Télécharger le modèle
model_path = hf_hub_download(repo_id="QuentinJassey/epicoin-fraud-detection-enriched", filename="fraud_model_enriched.pkl")
scaler_path = hf_hub_download(repo_id="QuentinJassey/epicoin-fraud-detection-enriched", filename="scaler_enriched.pkl")
# Charger
with open(model_path, 'rb') as f:
model = pickle.load(f)
with open(scaler_path, 'rb') as f:
scaler = pickle.load(f)
# Prédire
features = [...19 features...]
features_scaled = scaler.transform([features])
fraud_proba = model.predict_proba(features_scaled)[0][1]
fraud_score = int(fraud_proba * 100)
const response = await fetch(
'https://api-inference.huggingface.co/models/QuentinJassey/epicoin-fraud-detection-enriched',
{
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_HF_TOKEN',
'Content-Type': 'application/json'
},
body: JSON.stringify({
inputs: features // Array de 19 features
})
}
)
Ce modèle est utilisé en production dans les Edge Functions Supabase d'EpiCoin pour détecter les transactions frauduleuses en temps réel.
MIT