# A question about using the results from Fisher method

**URL:** <https://root-forum.cern.ch/t/a-question-about-using-the-results-from-fisher-method/52362>\
**Category:** TMVA\
**Created:** [November 15, 2022, 7:07am UTC](https://root-forum.cern.ch/t/a-question-about-using-the-results-from-fisher-method/52362 "2022-11-15T07:07:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![StephenChao](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/stephenchao/32/31509_2.png) [@StephenChao](https://root-forum.cern.ch/u/StephenChao)\
**Post date:** [November 15, 2022, 7:07am UTC](https://root-forum.cern.ch/t/a-question-about-using-the-results-from-fisher-method/52362/1 "2022-11-15T07:07:59Z")

</div>

Dear experts,

I have a question with using the results of Fisher method and want to ask for your advice kindly.

To be specific, I have a set of 37 input variables, and I successfully ran the `TMVAClassification.C` with my BKG root file and Signal root file with `Fisher` method booked, thus got the weight.xml file. If I want to use the results quickly, since I know the Fisher classifier is a linear combination of all the input variables, can I just use the `weight` in the weight.xml file like in the attachment to define the classifier(like classifier = weight1_input1 + … + weight37_input37) so I can use the classifier in my real analysis? If not, how can I get the formula of the classifier?

Thanks very much!

 ![截屏2022-11-15 14.56.27](https://root-forum.cern.ch/uploads/default/original/3X/b/0/b0e516dcdcdf8d2067c23f88ead4812992c2977e.png)

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [November 15, 2022, 8:12am UTC](https://root-forum.cern.ch/t/a-question-about-using-the-results-from-fisher-method/52362/2 "2022-11-15T08:12:19Z")

</div>

Welcome to the ROOT Forum! I’m sure @moneta can help you

---

<div class="post-metadata">

**Author:** ![StephenChao](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/stephenchao/32/31509_2.png) [@StephenChao](https://root-forum.cern.ch/u/StephenChao)\
**Post date:** [November 15, 2022, 8:18am UTC](https://root-forum.cern.ch/t/a-question-about-using-the-results-from-fisher-method/52362/3 "2022-11-15T08:18:10Z")

</div>

Thanks very much! I will wait for his advice.

---

<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:** [November 15, 2022, 9:38am UTC](https://root-forum.cern.ch/t/a-question-about-using-the-results-from-fisher-method/52362/4 "2022-11-15T09:38:03Z")

</div>

Hi,

TMVA together with the XML files create also a C file. In the dataset directory you should have something like a `TMVAClassification_Fisher.class.C`. This macro contains the C++ code to evaluate your method directly. See page 46-47 to the [TMVA Users Guide](https://root.cern.ch/download/doc/tmva/TMVAUsersGuide.pdf).

Cheers

Lorenzo

---

<div class="post-metadata">

**Author:** ![StephenChao](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/stephenchao/32/31509_2.png) [@StephenChao](https://root-forum.cern.ch/u/StephenChao)\
**Post date:** [November 15, 2022, 12:11pm UTC](https://root-forum.cern.ch/t/a-question-about-using-the-results-from-fisher-method/52362/5 "2022-11-15T12:11:49Z")

</div>

Thanks @moneta , this cfile is exactly what I want and solved my problem perfectly!

Really appreciate about that!
