# Extract weights xml file from output rootfile?

**URL:** <https://root-forum.cern.ch/t/extract-weights-xml-file-from-output-rootfile/25823>\
**Category:** TMVA\
**Created:** [August 5, 2017, 12:35pm UTC](https://root-forum.cern.ch/t/extract-weights-xml-file-from-output-rootfile/25823 "2017-08-05T12:35:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pietrovischia](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pietrovischia/32/11133_2.png) [@pietrovischia](https://root-forum.cern.ch/u/pietrovischia)\
**Post date:** [August 5, 2017, 12:35pm UTC](https://root-forum.cern.ch/t/extract-weights-xml-file-from-output-rootfile/25823/1 "2017-08-05T12:35:40Z")

</div>

Hi,

are by any chance the training weights stored within the output rootfile? If so, is it possible to dump them again to an xml file (I am thinking at something like a button in TMVAGui, or something like that)?

(or in other words: if one loses the weights.xml file, is there any chance to re-generate it starting from the output rootfile?)

Thanks in advance!

Cheers,  
Pietro

---

<div class="post-metadata">

**Author:** ![kialbert](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/kialbert/32/16537_2.png) [@kialbert](https://root-forum.cern.ch/u/kialbert)\
**Post date:** [August 5, 2017, 1:08pm UTC](https://root-forum.cern.ch/t/extract-weights-xml-file-from-output-rootfile/25823/2 "2017-08-05T13:08:42Z")

</div>

Hi,

No, sorry, the weight files are stored seperately and are not recoverable from the root file 😕

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![pietrovischia](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pietrovischia/32/11133_2.png) [@pietrovischia](https://root-forum.cern.ch/u/pietrovischia)\
**Post date:** [August 6, 2017, 10:15am UTC](https://root-forum.cern.ch/t/extract-weights-xml-file-from-output-rootfile/25823/3 "2017-08-06T10:15:48Z")

</div>

OK, thanks! ☹  
Cheers,  
Pietro
