# Data transformation in tmva

**URL:** <https://root-forum.cern.ch/t/data-transformation-in-tmva/50639>\
**Category:** Newbie\
**Tags:** tmva\
**Created:** [July 3, 2022, 8:47am UTC](https://root-forum.cern.ch/t/data-transformation-in-tmva/50639 "2022-07-03T08:47:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NgJunKai](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/ngjunkai/32/30046_2.png) [@NgJunKai](https://root-forum.cern.ch/u/NgJunKai)\
**Post date:** [July 3, 2022, 8:47am UTC](https://root-forum.cern.ch/t/data-transformation-in-tmva/50639/1 "2022-07-03T08:47:58Z")

</div>

I have come across two types of variable transformation:

1. at `TMVA::Factory *factory = new TMVA::Factory( "TMVAClassification", outputFile"Transformations=I;D;P;G,D" );`
2. at `factory->BookMethod( dataloader, TMVA::Types::kBDT, "BDT","...VarTransform=N" );`

I have consulted the user manual, and it says the first one just for test and display. So is it that the first one does not transform the data and pass the transformed data for training , whereas the second one do transform the data for the training ?

So if I want only the data being transformed before the training, is it OK to turn off all the transformation at the first one?

* * *

\_ROOT Version: 6.24 (PyROOT via conda)  
\_Platform:Centos7  
\_Compiler: gcc9

* * *

---

<div class="post-metadata">

**Author:** ![etejedor](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/e/e79b87/32.png) [@etejedor](https://root-forum.cern.ch/u/etejedor)\
**Post date:** [July 4, 2022, 7:34am UTC](https://root-forum.cern.ch/t/data-transformation-in-tmva/50639/2 "2022-07-04T07:34:24Z")

</div>

Hello,

This is for @moneta, thank you!
