Interpretable Corporate Bond Prediction Service using LIME

This project is for DB finance project that predict the debenture availability. When companies needs money, they want to issue the corporate bond. However, it is very expensive to test the corporated bond, to solve this problem we propose this service This service is belong to DongBu finance.

System

This system predict the credit rating and use them as the corporate bond availability.

There are 3 process:

  1. Use unlabeled dataset
clf = RandomForestClassifier(max_depth=3, random_state=0).fit(newXtrain,y_train)
for i in range(len(newxunlabeld)):
    if np.max(clf.predict_proba([newxunlabeld[i]]))>0.6:
    listxtrain.append(xunlabeled[i].astype(np.float64))       
    listytrain.extend(clf.predict([newxunlabeld[i]]))
  1. Feature selection: Use recursive feature elimination

  2. Prediction: Use random forest

from sklearn.ensemble import RandomForestClassifier

# learn Random Forest by using train data which has 5 depth tree
clf1 = RandomForestClassifier(max_depth=5, random_state=743)
clf1.fit(newXtrain,np.array(listytrain))

# get predict value
pred=clf1.predict(realtest)

Serive page

We create service page using node.js and MongoDB.

Pages

This page is for getting information.

image

This is the explanation by LIME.

image

image