Git Product home page Git Product logo

wellsfargo-analytics-challenge's Introduction

Please refer to Report.pdf for description of project.


Code description:

Only the 'Daily use of a WF credit card' tab (daily-creditcard___detailCategory.csv) of the data file is used. Every customer's sequential purchase history has 4 features: Date (time) Des1 (categorical data) Des2 (categorical data) Payment (numerical data)

Des1, Des2 and Payment can be used as features for the data to build a Recurrent Neural Network model. It is advisable to have larger datasets to better train a deep learning model. Due to small dataset available, we limit ourselves to train only the Des2 feature.

'''ReadData.py Reads sequential card usage data from the 'daily-creditcard___detailCategory.csv' file.

'''rnn.py Contains code for the Recurrent Neural Network model implementation.


Instructions to run the code: (Note: They are specific to LINUX)

  1. Install python libraries 'numpy' , 'matplotlib' and 'tensorflow' through terminal using following commands: -pip install numpy -pip install matplotlib -pip install tensorflow

(Make sure the above libraries are successfully installed)

  1. Run the rnn.py file using command: -python rnn.py

  2. Enter masked_id of customer whose purchase you want to predict in the terminal prompt.


Results:

The output is the current, shifted and predicted values for current batch data. Note: The predicts are not very good because the dataset is very small and also it is synthetic data with no purchase patterns.

IMPORTANT We also generate the loss computed for every batch run. The algorithm is successful in the prediction task as the error values generally shows a decreasing trend after every run. (Visible in the plot generated).

wellsfargo-analytics-challenge's People

Contributors

bhavtoshrath avatar

Stargazers

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