Downloads · 30 days
0
yahiaehab10/fraud-ccf-lightgbm
fraud-ccf-lightgbm is a machine learning model from yahiaehab10. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for sklearn.
This is a LightGBM-based binary classifier trained to detect credit card fraud transactions.
Downloads · 30 days
0
Access
Public
Updated Oct 16, 2025
Repo size
3.8 MB
Likes
0
Public
Click a slice to open those files.
.pkl3.8 MB · 100%
From the Hugging Face model README
This is a LightGBM-based binary classifier trained to detect credit card fraud transactions.
import joblib
import pandas as pd
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(repo_id="yahiaehab10/fraud-ccf-lightgbm", filename="pipeline.pkl")
pipeline = joblib.load(model_path)
# Download threshold
threshold_path = hf_hub_download(repo_id="yahiaehab10/fraud-ccf-lightgbm", filename="threshold.json")
import json
threshold = json.load(open(threshold_path))["threshold"]
# Make predictions
# X should have columns: Amount, V1, V2, ..., V28
probabilities = pipeline.predict_proba(X)[:, 1]
predictions = (probabilities >= threshold).astype(int)
The model is optimized for fraud detection with a focus on minimizing false positives while maintaining high recall for fraud cases.
Educational use only. Please refer to the original dataset license.