Hello, could you help us to figure out how to force full path to the state file PyGTBModel_GTB.PyData, please?
We are using ROOT.TMVA.Types.kPyGTB for the training ant testing.
data loader is called dataset_pymva: TMVA.DataLoader(‘dataset_pymva’). When running the training I see the message
Saving state file: dataset_pymva/weights/PyGTBModel_GTB.PyData
weights folder was created automatically.
I also see these files created
: Creating xml weight file: dataset_pymva/weights/TMVAOutput_WPhi_2L1T_newPyPlotter2_d_GTB.weights.xml
: Creating standalone class: dataset_pymva/weights/TMVAOutput_WPhi_2L1T_newPyPlotter2_d_GTB.class.C
In the standalone code which has nothing to do with this training we need to apply the training to the data set. We only use dataset_pymva/weights/TMVAOutput_WPhi_2L1T_newPyPlotter2_d_GTB.weights.xml for this.
But here is the problem, in the .xml file there is a path to the .PyData file and path is not full, so the application of the training parameters crashes.
dataset_pymva/weights/PyGTBModel_GTB.PyData
If we modify the path to the .PyData file manually to give full path to the file, then throning is applied ok. How can I force the training to write full path to .PyData training, so that can optimize the application?
I tried to give full path in the data loader as TMVA.DataLoader(‘full_path/dataset_pymva’), but this crashed even before saving the .PyData file step with an error:
Error in TFile::GetObjectChecked: The provided key name is invalid.
*** Break *** segmentation violation
Many thanks in advance for your help,
Olena