Code Monkey home page Code Monkey logo

chemoshtony / credit-card-fraud-detection-ml-project Goto Github PK

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

To create a system that effectively detects and prevents credit card fraud using machine learning techniques, ensuring the security of financial transactions and protecting customers from fraudulent activities.

Jupyter Notebook 100.00%
decision-tree-classifier logistic-regression machine-learning python sklearn support-vector-classifier pandas

credit-card-fraud-detection-ml-project's Introduction

Credit-Card-fraud-detection-system-using-Machine-Learning

Detect Fraudulent Credit Card transactions using different Machine Learning models and compare performances

In this notebook, I explore various Machine Learning models to detect fraudulent use of Credit cards. I compare each model performance and results.

Please note that this approach can be transferred to other detection analysis in alternatrive domains. The feature extraction process remains similar and can be replicated on many other detection issues.

Problem Statement

In this project we want to identify fraudulent transactions with Credit Cards. Our objective is to build a Fraud detection system using Machine learning techniques. In the past, such systems were rule-based. Machine learning offers powerful new ways.

The project uses a dataset of 300,000 fully anonymized transactions. Each transation is labelled either fraudulent or not fraudulent.

Techniques used in the project

The project compares the results of different techniques :

  • Logistic Regression
  • Support Vector Classifier(SVC) / Support Vector Machine(SVM)
  • Decision Tree Classifier

Results

If "Accuracy on Training Data(0.900 = 90%) > Accuracy on Test Data(0.500 = 50%)" Then Model will be Over fitting. If "Accuracy on Training Data(0.500 = 50%) < Accuracy on Test Data(0.900 = 90%)" Then Model will be Under fitting. If "Accuracy on Training Data(0.900 = 90%) = Accuracy on Test Data(0.900 = 90%)" Then Model performs very well.

Logistic Regression Model : Accuracy on Training Data : 0.9390088945362135. Accuracy on Test Data : 0.9238578680203046. Therfore, Then Model performs very well.

SVC/SVM Model : Accuracy on Training Data : 0.9085133418043202. Accuracy on Test Data : 0.9035532994923858. Therfore, Then Model performs very well.

Decison Tree Classifier Model : Accuracy on Training Data : 0.9542566709021602. Accuracy on Test Data : 0.883248730964467. Therfore, Then Model performs very well.

credit-card-fraud-detection-ml-project's People

Contributors

chemoshtony 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.