Skip to content

Forecasting Credit Default Risk with Graph Attention Networks

Notifications You must be signed in to change notification settings

ZJUDataIntelligence/Foreknow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

Foreknow

This is a Pytorch implementation of the model in the paper "Forecasting Credit Default Risk with Graph Attention Networks".

Requirements

pytorch

pytorch-geometric

Usage

To run the code

  1. Download the datasets at here.

  2. Run the data processing code:

    python process.py

  3. Run the credit default risk prediction code:

    python myGAT.py

Code Organization

  1. process.py: This file is used to process the three raw datasets and output relevant attributes for future credit default risk prediction tasks.
  • Input: "application_train.csv", "bureau.csv", "credit_card_balance.csv"
  • Output: "one.csv"、"binary.csv", "r1_onehot.csv", "d1_onehot.csv", "l1_onehot.csv", "r1.csv", "l1.csv"
  1. A&D_distance.Rmd: This file is used to calculate distances between mixed data by Ahmad & Dey method.
  • Input: "r1.csv", "l1.csv"
  • Output: "ahmad_r1.csv", "ahmadl1.csv"
  1. myGAT.py: This file is the core implementation of the prediction model.
  • Input: "r1_onehot.csv", "d1_onehot.csv", "l1_onehot.csv", "ahmad_r1.csv", "ahmadl1.csv", "binary.csv"
  • Output: "pre.csv"

About

Forecasting Credit Default Risk with Graph Attention Networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages