# \[TMVA\] Pre-training initialization of Neural-net weights

**URL:** <https://root-forum.cern.ch/t/tmva-pre-training-initialization-of-neural-net-weights/21397>\
**Category:** TMVA\
**Created:** [June 22, 2016, 3:39am UTC](https://root-forum.cern.ch/t/tmva-pre-training-initialization-of-neural-net-weights/21397 "2016-06-22T03:39:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcalvert](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/58956e/32.png) [@bcalvert](https://root-forum.cern.ch/u/bcalvert)\
**Post date:** [June 22, 2016, 3:39am UTC](https://root-forum.cern.ch/t/tmva-pre-training-initialization-of-neural-net-weights/21397/1 "2016-06-22T03:39:06Z")

</div>

Dear TMVA-experts,

Is it possible to initialize the connection-weights of a neural network to some arbitrary values prior to beginning training? My understanding is the the TMVA::Reader class is able to read the .xml files produced by trained models in order to recreate said models, but I don’t know that the TMVA::Factory class can do this.

Thanks!  
Brian

---

<div class="post-metadata">

**Author:** ![hvoss](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/h/cc9497/32.png) [@hvoss](https://root-forum.cern.ch/u/hvoss)\
**Post date:** [June 22, 2016, 2:11pm UTC](https://root-forum.cern.ch/t/tmva-pre-training-initialization-of-neural-net-weights/21397/2 "2016-06-22T14:11:26Z")

</div>

Hi,

sorry, while in principle that would indeed a fairly easy thing to do, it’s not implemented for the MLP. The new DNN implemented by Peter had in his stand alone version some ‘resume-training’ from a given weightfile implemented, but it seems to be commented out for the TMVA version - I guess because it simply doesn’t ‘fit’ into the structure ☹

Helge

---

<div class="post-metadata">

**Author:** ![bcalvert](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/b/58956e/32.png) [@bcalvert](https://root-forum.cern.ch/u/bcalvert)\
**Post date:** [June 22, 2016, 3:35pm UTC](https://root-forum.cern.ch/t/tmva-pre-training-initialization-of-neural-net-weights/21397/3 "2016-06-22T15:35:57Z")

</div>

Hi Helge,

Thank you for the quick reply 🙂.

That is unfortunate that no such feature exists ☹ (or rather, that it is not implemented in the TMVA version of the current ML methods). It seems that there are already a lot of new features in the pipeline for development in TMVA; nevertheless, is there a good person to contact to request this feature as well?

Cheers,  
Brian
