# Convert XGBoost BDT regression model to TMVA

**URL:** <https://root-forum.cern.ch/t/convert-xgboost-bdt-regression-model-to-tmva/39251>\
**Category:** TMVA\
**Created:** [May 4, 2020, 1:44pm UTC](https://root-forum.cern.ch/t/convert-xgboost-bdt-regression-model-to-tmva/39251 "2020-05-04T13:44:41Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![swunsch](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/50afbb/32.png) [@swunsch](https://root-forum.cern.ch/u/swunsch)\
**Post date:** [March 29, 2021, 7:28am UTC](https://root-forum.cern.ch/t/convert-xgboost-bdt-regression-model-to-tmva/39251/14 "2021-03-29T07:28:40Z")

</div>

Ah alright! Unfortunately, the simplest solution for Python is a two-line helper function. You can find an example [here](https://root-forum.cern.ch/t/rdataframe-and-tmva-in-pyroot/38930/3).

Best,  
Stefan

---

_[View the full topic](https://root-forum.cern.ch/t/convert-xgboost-bdt-regression-model-to-tmva/39251)._
