Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

README.md

XGBoost trees to plain C/Python converter

Usage

xgb_get_code(model=xgb_model, spacer_base="    ", 
             print_only=False, path=path, lang='C', 
             packing_in_line=True)

Where xgb_model is trained dmlc xgboost regressor. This command will create a text file "xgb_dump.txt", which you can find in a repo as an example.

Dependencies

  • python 3.6
  • xgboost 0.6

About

Exporting trained boosted trees to executable code in plain C / Python

Topics

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.