# The relationship between input data and output data in TMVA

**URL:** <https://root-forum.cern.ch/t/the-relationship-between-input-data-and-output-data-in-tmva/49931>\
**Category:** TMVA\
**Created:** [May 11, 2022, 7:01am UTC](https://root-forum.cern.ch/t/the-relationship-between-input-data-and-output-data-in-tmva/49931 "2022-05-11T07:01:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaerme](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/b5e925/32.png) [@chaerme](https://root-forum.cern.ch/u/chaerme)\
**Post date:** [May 11, 2022, 7:01am UTC](https://root-forum.cern.ch/t/the-relationship-between-input-data-and-output-data-in-tmva/49931/1 "2022-05-11T07:01:27Z")

</div>

I find that several options for reading input data in TMVAGUI are `(1b)'Deco' -transform` and `(1c)'PCA' -transform` and `(3)Linear Correlation`, but I don’t quite understand that `(3)Linear Correlation` here is based on initial data. Or based on data that has already been transformed？

And the`(4b) final classification result`, is it based on the initial data or the data that has been transformed?

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/6/0/606185304cfb3701e64c27dd96dfa7e7c535a0dc.png)

If both are based only on the initial input data, what is the role of these two transformations here?

Hope to have enthusiastic personage can answer my question, thank you very much!

Cheers,  
Kevin.

---

<div class="post-metadata">

**Author:** ![jalopezg](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/jalopezg/32/25844_2.png) [@jalopezg](https://root-forum.cern.ch/u/jalopezg)\
**Post date:** [May 11, 2022, 9:10am UTC](https://root-forum.cern.ch/t/the-relationship-between-input-data-and-output-data-in-tmva/49931/2 "2022-05-11T09:10:59Z")

</div>

Hi @chaerme; I am sure @moneta can reply to your question.

Cheers,  
J.

---

<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:** [May 11, 2022, 3:35pm UTC](https://root-forum.cern.ch/t/the-relationship-between-input-data-and-output-data-in-tmva/49931/3 "2022-05-11T15:35:00Z")

</div>

Hi,

These transformations are performed on the input data before being used by the TMVA method. If you are using transformations, the final classifier results will be based on the transformed data.

Lorenzo

---

<div class="post-metadata">

**Author:** ![chaerme](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/b5e925/32.png) [@chaerme](https://root-forum.cern.ch/u/chaerme)\
**Post date:** [May 12, 2022, 1:51am UTC](https://root-forum.cern.ch/t/the-relationship-between-input-data-and-output-data-in-tmva/49931/4 "2022-05-12T01:51:23Z")

</div>

Hi, @moneta  
I don’t quite understand what you mean.

> TMVA::Factory\* factory = new TMVA::Factory(“TMVAtest”, outputFile,
> 
> ```
> "!V:!Silent:Color:DrawProgressBar:Transformations=I;D;P:AnalysisType=Classification");
> 
> ```

Does that mean that as long as I select the transformation here, everything that follows will be based on that transformation? And when I use the classification method later, don’t I need to set the transformation option?

---

<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:** [May 12, 2022, 10:09am UTC](https://root-forum.cern.ch/t/the-relationship-between-input-data-and-output-data-in-tmva/49931/5 "2022-05-12T10:09:59Z")

</div>

Hi,  
If you put the Transformation in the Factory they will be applied to the methods, they will just be tested and produce some information plots. To have the transformations used for the classification by the method you need to specify them in the BookMethod. See paragraph 4 (page 48) of the [TMVA Users Guide](https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf)

Lorenzo

---

<div class="post-metadata">

**Author:** ![chaerme](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/c/b5e925/32.png) [@chaerme](https://root-forum.cern.ch/u/chaerme)\
**Post date:** [May 12, 2022, 10:31am UTC](https://root-forum.cern.ch/t/the-relationship-between-input-data-and-output-data-in-tmva/49931/6 "2022-05-12T10:31:47Z")

</div>

@moneta

I get it ! Thank you !

Cheers,  
Kevin
