YAML Metadata Warning:empty or missing yaml metadata in repo card
Check out the documentation for more information.
Credit Fraud Detection System
An end-to-end machine learning solution for detecting fraudulent credit card transactions.
Project Structure
src/preprocessing.py: Data loading, scaling, and SMOTE for handling class imbalance.src/model.py: Random Forest model definition and evaluation.train.py: Main script to execute the training pipeline.app.py: Flask backend to serve predictions.templates/index.html: Premium web interface for testing the model.creditcard.csv: Dataset (Kaggle).
How to Run
Install Dependencies:
pip install -r requirements.txtTrain the Model:
python train.pyRun the Application:
python app.pyAccess the UI: Open
http://127.0.0.1:5000in your browser.
Model Details
- Algorithm: Random Forest Classifier
- Preprocessing:
- Standard scaling for Time and Amount.
- SMOTE (Synthetic Minority Over-sampling Technique) to balance the dataset.
- Evaluation Metrics: Precision, Recall, and F1-Score are used due to heavy class imbalance.
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support