# How to change type of data in TLeaf in order to use TMVA

**URL:** <https://root-forum.cern.ch/t/how-to-change-type-of-data-in-tleaf-in-order-to-use-tmva/4850>\
**Category:** TMVA\
**Created:** [June 5, 2007, 12:02am UTC](https://root-forum.cern.ch/t/how-to-change-type-of-data-in-tleaf-in-order-to-use-tmva/4850 "2007-06-05T00:02:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhiyiliu](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/z/85e7bf/32.png) [@zhiyiliu](https://root-forum.cern.ch/u/zhiyiliu)\
**Post date:** [June 5, 2007, 12:02am UTC](https://root-forum.cern.ch/t/how-to-change-type-of-data-in-tleaf-in-order-to-use-tmva/4850/1 "2007-06-05T00:02:35Z")

</div>

Hello,  
I have lots of root files, however, those root files have TLeaf with data type as ‘  
Double\_t’. And for training variables in TMVA package, only allowed data type is ‘Float\_t’ or ‘I’, it is impossible for me to recreate all my root files, so I am wondering if there is a way to change data type in TLeaf to ‘Float\_t’ from ‘Double\_t’. Also, maybe another easy way is to add support to ‘Double\_t’ data type in TMVA package and compile it. Any ideas, please?

Thanks,  
Zhiyi.

---

<div class="post-metadata">

**Author:** ![stelzer](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/s/94ad74/32.png) [@stelzer](https://root-forum.cern.ch/u/stelzer)\
**Post date:** [June 6, 2007, 9:26pm UTC](https://root-forum.cern.ch/t/how-to-change-type-of-data-in-tleaf-in-order-to-use-tmva/4850/2 "2007-06-06T21:26:30Z")

</div>

Hi Zhiyi,

the specification of float ‘F’ or integer ‘I’ only refers to the internal treatment of the input variables. For all kinds of floating point variables (like for your Double\_t) you should specify ‘F’. We will revise the documentation to make that more clear.

Best regards,  
Joerg
