One specifies the output directory for a DataLoader
using the thedlName
input parameter:
mydl = DataLoader("output/directory")
This results in the creation of output/directory/weights/
, which contains the requisite .xml
and .C
files generated by TMVA.
The same directory structure gets used in the output file by default. That is, there will be a TDirectory
called “output” that contains another TDirectory
called “directory” in the output ROOT file.
If, however, I specify the absolute path to the directory I want to create, like so:
mydl = DataLoader("/abs/path/to/output/directory")
evaluation fails with, e.g.:
PATH: /abs/path/to/output/directory/myBDT_fold1.root
Error in <TFile::GetObjectChecked>: The provided key name is invalid.
presumably because ROOT does not expect an absolute path as a TDirectory
tree structure.
Is there a way around this? I’d like to be able to steer the output of my script without mucking up the internal structure of my output training files.