Error in TXMLEngine::ParseFile: Unexpected end of xml file

Hi root experts ,
I have a problem if i use MVAClassificationApplication.C code to fit my histograms and find the suitable cut for both of sinal and background.But i find error during run this code

*///////////////////////////////////////////////

rocessing TMVAClassificationApplication.C(“BDT”)…

==> Start TMVAClassificationApplication
Error in TXMLEngine::ParseFile: Unexpected end of xml file
: Trying to read non-existing attribute ‘Method’ from xml node ’
***> abort program execution
terminate called after throwing an instance of ‘std::runtime_error’
what(): FATAL error
*//////////////////////////////////////////////////////////////////
To clarify my problem accurately. I think in this section of the code

 // Book method(s)

for (std::mapstd::string,int::iterator it = Use.begin(); it != Use.end(); it++) {
if (it->second) {
TString methodName = TString(it->first) + TString(" method");
TString weightfile = dir + prefix + TString(“_”) + TString(it->first) + TString(“.weights.xml”);
reader->BookMVA( methodName, weightfile );
}

*/////////////////////////////////////

thanks ,
Ahmed

TMVAClassificationApplication.C (23.0 KB)
bb.root (45.5 KB)
h_bb.root (45.5 KB)
h90BP1_bb.root (55.9 KB)
h90BP2_bb.root (55.3 KB)
h95BP1_bb.root (55.4 KB)

h95BP3_bb.root (56.1 KB)
h96BP1_bb.root (21.7 KB)
h96BP2_bb.root (56.2 KB)
h96BP3_bb.root (56.9 KB)
h96BP6_bb.root (54.5 KB)

Hi @Ahmed_Sayed,

Thanks for your question.

It would be nice to have your question at one place: either here or at Unable to open input weight file: - #4 by devajith. Than having it duplicated.

Thanks,
Dev

Hi Dr @devajith ,
Im so sorry, i am dissapointed to solve this
Problem hopping to share my question to
Solve.

Thanks ,
Ahmed

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.