Git Product home page Git Product logo

lendingclub's Introduction

Lendingclub

For data driven loan selection on lendingclub. Important packages are sklearn, pandas, numpy, pytorch, fastai.

  1. Current model is RF (sklearn) + NN (pytorch). Performance was compared against picking entirely at random and picking at random within the best performing loan grade historically.
  2. Investigative models are trained on old done loans and validated on newest of old done loans.
  3. Models used in invest scripts are trained on all available training data.

TODOS:

  1. Add timings to invest script 1a) speed up as much as possible
  2. Compare speed when retraining single model on prediction of ensembled model
  3. Compare loans captured through API (in database) to information coming on csvs and ensure that all data matches (grade and subgrade in particular)
  4. Continue to build out Dash dashboard

Notes:

about the csvs/data

  1. Even though LC only issues loasn A1-D5, they still internally have A1 - G3/5 in the loan info. I checked the interest rates and grades with the information at https://www.lendingclub.com/foliofn/rateDetail.action

Strange loans are separated out after all cleaning steps

Git Tags

Various git tags for navigating between datasets and dev/full datasets datav0.0.0 <- model/scorer.dataprocessingtype.raw_data_csvs? Each redownload of new data, increment rightmost #?

DVC Stuff

  1. when want new raw_csvs: python lendingclub/csv_dl_archiving/01_download_LC_csvs.python but beware: https://dvc.org/doc/user-guide/update-tracked-file

Usage:

Advisable to set up an environment After cloning: in root dir (lendingclub) with setup.py, run pip install -e . properly setup account_info.py in user_creds (see example)

Run order (all scripts in lendingclub subdir):

  1. python lendingclub/csv_dl_archiving/01_download_and_check_csvs.py
  2. python lendingclub/csv_prepartion/02_unzip_csvs.py
  3. python Before running clean_loan_info, have to cd to lendingclub/csv_preparation python setup.py build_ext. Will make a build dir in cd, copy the .so (unix) or .pyd(windows) to cd

other notes to self:

j_utils is imported and use in several scripts. See repo https://github.com/jmhsi/j_utils

To fix permissions troubles, I ended up adding jenkins and justin to each others groups (sudo usermod -a -G groupName userName) and doing chmod 664(774) on .fth and dataframes or other files as necessary.

Current jenkins setup runs in conda environment (based off https://mdyzma.github.io/2017/10/14/python-app-and-jenkins/) Considering moving to docker containers once I build the Dockerfiles?

Made symlink: ln -s /home/justin/projects to /var/lib/jenkins/projects so jenkins can run scripts like the actual projects directory

lendingclub's People

Contributors

jmhsi avatar

Stargazers

Eyad Sibai 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.