# Calculate BDT score with python based xgboost BDT

**URL:** <https://root-forum.cern.ch/t/calculate-bdt-score-with-python-based-xgboost-bdt/48558>\
**Category:** TMVA\
**Tags:** python\
**Created:** [January 25, 2022, 4:34pm UTC](https://root-forum.cern.ch/t/calculate-bdt-score-with-python-based-xgboost-bdt/48558 "2022-01-25T16:34:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PunitSharma](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/p/c89c15/32.png) [@PunitSharma](https://root-forum.cern.ch/u/PunitSharma)\
**Post date:** [January 25, 2022, 4:34pm UTC](https://root-forum.cern.ch/t/calculate-bdt-score-with-python-based-xgboost-bdt/48558/1 "2022-01-25T16:34:28Z")

</div>

Hi All,  
I am trying to use python-based xgboost for my BDT analysis.

How do I calculate the BDT score after I am able to use “model.predict\_proba”? I am looking for a snippet or a mathematical definition of BDT score after this step.

Thanks

---

<div class="post-metadata">

**Author:** ![moneta](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/moneta/32/19423_2.png) [@moneta](https://root-forum.cern.ch/u/moneta)\
**Post date:** [January 26, 2022, 2:02pm UTC](https://root-forum.cern.ch/t/calculate-bdt-score-with-python-based-xgboost-bdt/48558/2 "2022-01-26T14:02:35Z")

</div>

Hi,

This is more a question for xgboost than ROOT. For ROOT TMVA you can look at the TMVA Users guide, in particular the section about decision trees.  
See [https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf](https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf)

Lorenzo
