GithubHelp home page GithubHelp logo

loan-repayment-predictor's Introduction

Loan-Repayment-Predictor

Loan Repayment predictions using gradient boosted deicison trees. Model code is in the kaggle.ipynb file.

The model was tree ensembles used from the XGBoost API, with all of the features being my xi and the status being my yi.

I specified the max depth of each tree to be 4, the learning rate to be .3, and specified the number of classes as well in the parameters. It is sensible that the decision trees were short, because gradient boosting is based on the fact that the decision trees are weak learners.

Tree constraints are important in keeping the learner weak. The learning rate specifies the weightage because when each tree is added, the contribution of each tree to the sum should be weighted.

The way tree boosting works is we have an objective function and the goal is to optimize it. The way gradient boosting works is that we add the trees one at a time to the model. After calculating the loss of one weak learner, we follow the gradient descent and add another tree to the model that reduces the loss. Addition of trees/training stops once the algorithm reaches the specified number of iterations (since the score isn’t increasing, also, we can specify this). I used the softmax loss function.

The scores are derived very closely to how we obtain the impurity scores when we evaluate decision trees. We sum up the gradient and second order gradient statistics on each leaf, then apply the scoring formula to get the quality score. The smaller scores show the better structures of trees.

loan-repayment-predictor's People

Contributors

neilnach avatar

Watchers

James Cloos avatar  avatar

Forkers

ndh150

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.