Git Product home page Git Product logo

lending_club's Introduction

Playing with Lending Club's data

Info

  • data folder contains Weka dataset + some stats on full data & sampled data
  • resources contains the Json dump of the Downloader & a sampled version.

Run

  • Run stats.py to get simple stats on downloader data.
  • Run weka_converter.py to generate weka ARFF file from API downloader data.

Prerequisites

Install modules :

  • numpy
  • scipy
  • mdp
  • liac-arff
  • prettytable

Setup conf file lc_conf

Configuration

The configuration file lc_conf contains the parameters used by the modules stats.py and weka_converter.py :

WEKA-specific parameters

Attributes are the are the columns in the dataset to analyze. You can have NOMINAL or NUMERIC attributes in Weka.

  • NOMINAL_ATTRIBUTES_NAMES are the attributes with discreet values. You must list the nominals values. The nominal values can't be modified. See CLASS_NOMINAL_VALUES and LOAN_GRADE_NOMINAL_VALUES below :

  • CLASS_NOMINAL_VALUES cannot be changed. This parameter must be set to ['B', 'NB', 'NBY', 'C']. Those are the class labels used in the Weka dataset. Class Labels Description :

    • B = Note Bought
    • NB = Note Not Bought
    • C = Note Cancelled
    • NBY = Note Not Bought Yet
  • LOAN_GRADE_NOMINAL_VALUES cannot be changed. This parameter must be set to ['A', 'B', 'C', 'D', 'E', 'F', 'G']

  • NUMERIC_ATTRIBUTES_NAMES are the metrics on which you can do continous maths operations like mean, max, min, etc. /!\ make sure that the names correspond to a key in the raw downloader JSON.

  • NUMERIC_ATTRIBUTES_METRICS is used to set the unit of each metric of NUMERIC_ATTRIBUTES_NAMES. /!\ list should match with METRICS order.

Other parameters

  • INCLUDE_NBY is used to include or not the NBY class in the dataset to analyze.
  • MAX_NB_BUCKETS to modify the max nb of buckets that will be generated for each continuous metric of the dataset (the goal being to discretize them).
  • WEKA_FILE is the path to file where Weka will save converted downloader data.
  • DATA_TO_CONVERT is used to change path of API downloader data file to analyze.

lending_club's People

Contributors

shuang777 avatar marionleborgne avatar

Watchers

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