This project includes:
- fraud_detection.py: Train XGBoost fraud detection model with all features from Kaggle dataset.
- app.py: FastAPI API for single transaction prediction with dynamic threshold.
- test_single_api.py: Test a single transaction against the API.
- batch_test_api_full.py: Batch test multiple transactions from CSV.
- test_transactions_full.csv: Sample CSV file with features.
- Install dependencies:
pip install -r requirements.txt