Thanks to visit codestin.com
Credit goes to github.com

Skip to content

simonepigazzini/XGBoostCMSSW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

XGBoostCMSSW

This package provides an interface to XGBoost through the its c_api. To install the package follow the standard CMSSW guidelines and the additional steps below.

Setup the package

cmsrel X_Y_Z

cd X_Y_Z/src

cmsenv

git cms-init

git clone https://github.com/simonepigazzini/XGBoostCMSSW.git

cp XGBoostCMSSW/XGBoostInterface/toolbox/*xml $CMSSW_BASE/config/toolbox/$SCRAM_ARCH/tools/selected/

scram setup rabit

scram setup xgboost

scram b -j

The last two steps should print out a confirmation that the relevant libraries have been succesfully loaded as CMSSW external tools.

Use the package

Run within cmsRun job

The libxgboost.so file is too large to be handle by dlopen (running a cmsRun job using this package will ends up in an error message). You should set the LD_PRELOAD with the command provided below before executing the cmsRun command:

  • BASH: export LD_PRELOAD=$CMSSW_BASE/external/$SCRAM_ARCH/lib/libxgboost.so
  • FISH: set -x LD_PRELOAD $CMSSW_BASE/external/$SCRAM_ARCH/lib/libxgboost.so

About

XGBoost predictor interface for CMSSW

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages