Git Product home page Git Product logo

myliemudaliyar / credit-card-fraud-detection Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 312 KB

Credit Fraud Detection of a highly imbalanced dataset of 280k transactions. Multiple ML algorithms(LogisticReg, ShallowNeuralNetwork, RandomForest, SVM, GradientBoosting) are compared for prediction purposes.

Jupyter Notebook 100.00%
data-science gradient-boosting-classifier imbalanced-data logistic-regression machine-learning-algorithms random-forest-classifier shallow-neural-network support-vector-classifier under-sampling

credit-card-fraud-detection's Introduction

Performance metrics (classification report) for each model on the balanced dataset:

Logistic Regression:

Precision Recall F1-Score Support
Not Fraud 0.93 0.99 0.96 69
Fraud 0.99 0.93 0.96 73
Accuracy 0.96 142
Macro Avg 0.96 0.96 0.96 142
Weighted Avg 0.96 0.96 0.96 142

Shallow NN:

Precision Recall F1-Score Support
Not Fraud 0.86 1.00 0.93 69
Fraud 1.00 0.85 0.92 73
Accuracy 0.92 142
Macro Avg 0.93 0.92 0.92 142
Weighted Avg 0.93 0.92 0.92 142

Random Forest:

Precision Recall F1-Score Support
Not Fraud 0.91 1.00 0.95 69
Fraud 1.00 0.90 0.95 73
Accuracy 0.95 142
Macro Avg 0.95 0.95 0.95 142
Weighted Avg 0.96 0.95 0.95 142

Gradient Boosting:

Precision Recall F1-Score Support
Not Fraud 0.93 0.94 0.94 69
Fraud 0.94 0.93 0.94 73
Accuracy 0.94 142
Macro Avg 0.94 0.94 0.94 142
Weighted Avg 0.94 0.94 0.94 142

SVC:

Precision Recall F1-Score Support
Not Fraud 0.93 0.97 0.95 69
Fraud 0.97 0.93 0.95 73
Accuracy 0.95 142
Macro Avg 0.95 0.95 0.95 142
Weighted Avg 0.95 0.95 0.95 142

credit-card-fraud-detection's People

Contributors

myliemudaliyar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.