Giter Club home page Giter Club logo

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

View Code? Open in Web Editor NEW
2.0 2.0 3.0 6 KB

Working on scikit-learn library in Python to classify - Anonymized credit card transactions labeled as fraudulent or genuine. The datasets contains transactions made by credit cards in September 2013 by european cardholders. This dataset presents transactions that occurred in two days, where we have 492 frauds out of 284,807 transactions. The dataset is highly unbalanced, the positive class (frauds) account for 0.172% of all transactions. It contains only numerical input variables which are the result of a PCA transformation. Here in this module I'm working on three classification models : Decision Tree Classifier K-nearest neighbors (KNN) Classifier Random Forest Classifer to predict Anonymized credit card transactions as fraudulent or genuine. In order to do so I have done my data Processing : Handled Missing values : Using mean Standarised the data : Using Standardisation At the end, calculate the acuracy rate and error rate of all three classification. Decision Tree Accuracy : Accuracy_Decison : 99.87361325656508 -- (A better approach to follow) Error_rate : 0.12638674343491083 Random Forest Accuracy : Accuracy_Decison : 99.92978514253616 Error_rate : 0.07021485746383935 K-nearest neighbors (KNN) Accuracy : Accuracy_Decison : 99.9578710855217 Error_rate : 0.04212891447830361 Thanks for looking it :) .... Feel free to like :)

Jupyter Notebook 100.00%

credit-card-fraud-detection's People

Contributors

yashaswibiyahut avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

shakshamchauhan

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.