Git Product home page Git Product logo

autoencoders-credit-card-fraud's Introduction

Credit card fraud detection with Autoencoders

Task: Demonstrate the use of autoencoders to train a highly imbalance and high-dimensional data set of credit card records

This demonstration is done on a jupyter notebook.

Prerequisites:

  • Python 3
  • Jupyter notebook
  • Keras (TensorFlow backend)
  • sklearn
  • numpy, seaborn, pandas
  • data source: Kaggle

Description

This notebook demonstrates the use of autoencoders as part of a semi-supervised approach to model a highly imbalance and high-dimensional data set.

Here is a tSNE plot of the original dataset:

alt text

Obviously, the two target class are highly inseparable at its originally state.

Now, we train an autoencoder with this data and extract the latent features of this dataset from the network. By plotting the latent features with tSNE again we get the following:

alt text

We see that it is much easier to separate the 2 target classes using the latent features than the original ones. It is so well separated that one a simple logistic regression can yield very accurate predictions (over 90%)! Check out the notebook credit-card-fraud-classifier.ipynb for details.

autoencoders-credit-card-fraud's People

Contributors

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