Coder Social home page Coder Social logo

xgb_to_vb's Introduction

XGBoost model to VB function

XGBoost is a popular tree-based gradient boosting library (but you knew that..).

Often we want to create prototypes of models for expert users to assess before deployment occurs. Excel remains a favourite due to ubiquity, user familiarity and ease of creating pretty dashboards. VBA is the most practical way of executing a pre-trained model in Excel. If that's what you're trying to do you can do worse than the code here.

It started from https://github.com/Shiutang-Li/xgboost_deployment/blob/master/deploy_xgboost.ipynb . However, aside from needing to generate VBA a few improvements were made:

  • Multi-class (not just binary) classification is handled.
  • A bug is fixed in the regular expression for grabbing numbers in scientific notation.
  • The function prototype is explicit in the names of parameters, which makes it easier when calling from Excel.

On the other hand, I didn't implement missing value treatment as I did not need it. It could be added easily, however.

xgb_to_vb's People

Contributors

ptd006 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.