# DataLoader path for temporary files

**URL:** <https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278>\
**Category:** TMVA\
**Created:** [March 22, 2019, 12:16pm UTC](https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278 "2019-03-22T12:16:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rustem](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@rustem](https://root-forum.cern.ch/u/rustem)\
**Post date:** [March 22, 2019, 12:16pm UTC](https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278/1 "2019-03-22T12:16:00Z")

</div>

Hello,

Is there a way to specify a directory path where TMVA::DataLoader puts temporary files when running these steps?

TMVA::Factory TrainAllMethods();  
TMVA::Factory TestAllMethods();  
TMVA::Factory EvaluateAllMethods();

At the moment, I specify a path to weight files with this line:

TMVA::gConfig().GetIONames().fWeightFileDir = fWeightsPath;

but then TMVA::DataLoader puts temporary files to this path:

“TMVADataLoader” + fWeightPath.

Is there a way to configure this path to custom path? This would be useful when running many train and evaluation tests on batch system.

Thank you,  
Rustem

---

<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:** [March 25, 2019, 4:30pm UTC](https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278/2 "2019-03-25T16:30:13Z")

</div>

Hi,

You could create a separate DataLoader for each run, each with a unique name. The outputs would then be separated. I am not currently aware of way to do this by just specifying the path to where to save.

There is [this ticket](https://sft.its.cern.ch/jira/browse/ROOT-8887) open on the topic.

Cheers,  
Kim

---

<div class="post-metadata">

**Author:** ![rustem](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@rustem](https://root-forum.cern.ch/u/rustem)\
**Post date:** [April 2, 2019, 2:30pm UTC](https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278/3 "2019-04-02T14:30:00Z")

</div>

Hi Kim,

Thank you for your reply and for the ticket reference.

Indeed, this is exactly the same issue. I see that this ticket has been open since 2017 - any chance that this can be resolved soon? Unfortunately, I do not see a way for me to comment directly in the ticket.

Thank you,  
Rustem

---

<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:** [April 2, 2019, 2:45pm UTC](https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278/4 "2019-04-02T14:45:28Z")

</div>

Hi,

We are working on it. We have discussed a solution offline and will be implementing it shortly.

Cheers,

Kim

---

<div class="post-metadata">

**Author:** ![rustem](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@rustem](https://root-forum.cern.ch/u/rustem)\
**Post date:** [April 2, 2019, 3:42pm UTC](https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278/5 "2019-04-02T15:42:10Z")

</div>

Hi Kim,

This will be great! Thank you for the good news and for your help.

Cheers,  
Rustem

---

<div class="post-metadata">

**Author:** ![rustem](https://root-forum.cern.ch/letter_avatar_proxy/v4/letter/r/c0e974/32.png) [@rustem](https://root-forum.cern.ch/u/rustem)\
**Post date:** [May 9, 2019, 6:36am UTC](https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278/6 "2019-05-09T06:36:44Z")

</div>

Hi Kim,

Just curious if this fix will be implemented soon with a production version?

Thank you,  
Rustem

---

<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:** [May 9, 2019, 4:48pm UTC](https://root-forum.cern.ch/t/dataloader-path-for-temporary-files/33278/7 "2019-05-09T16:48:16Z")

</div>

Unfortunately, it seems it did not make it into the next release. Maybe @moneta can confirm?
