Skip to content

cydalytics/xgboost_to_sas

Repository files navigation

xgboost_to_sas Python m2cgen

Created by cyda - Carrie Lo & Yeung Wong alt text


Please acknowledge team cyda - Carrie Lo and Yeung Wong when using the code

If you find this script is helpful, please feel free to endorse us through Linkedin!

Linkedin:


Project Description

This project demostrate a hack to deploy your trained ML models such as XGBoost and LightGBM in SAS.

Project Details

To check the tutorial article, please click here.

The package used is m2cgen. m2cgen(Model 2 Code Generator) - is a lightweight library which provides an easy way to transpile trained statistical models into a native code (Python, C, Java, Go, JavaScript, Visual Basic, C#, PowerShell, R, PHP, Dart, Haskell, Ruby, F#). To know more about the package, you can refer to the docunment here.

Data used in the scripts is Iris dataset loaded from sklearn.

Demonstration

Demo 1: Convert XGBoost model to VBA, then to SAS scripts

Demo 2: Convert XGBoost model to VBA, then to SAS scripts (with missing values)

About

Converting Machine Learning Models to SAS using m2cgen (Python)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors