diff --git a/tmva/tmva/src/MethodBDT.cxx b/tmva/tmva/src/MethodBDT.cxx index 43ddfaa0e5e8e0a4e7f22cf4a573032d29401b4c..410e43851a1883d6a281ce0549f88c92e1ad6c62 100644 --- a/tmva/tmva/src/MethodBDT.cxx +++ b/tmva/tmva/src/MethodBDT.cxx @@ -1152,6 +1152,7 @@ void TMVA::MethodBDT::Train() fInteractive->Init(titles); } fIPyMaxIter = fNTrees; + fExitFromTraining = false; // HHV (it's been here since looong but I really don't know why we cannot handle // normalized variables in BDTs... todo diff --git a/tmva/tmva/src/VariableImportance.cxx b/tmva/tmva/src/VariableImportance.cxx index e1313034dc8279cd4f1d687f6e3aa1a8bdcc17f2..6e664700e089d6e30d15ddcd033f6826cc3bea26 100644 --- a/tmva/tmva/src/VariableImportance.cxx +++ b/tmva/tmva/src/VariableImportance.cxx @@ -211,6 +211,7 @@ void TMVA::VariableImportance::EvaluateImportanceShort() delete seeddl; fClassifier->DeleteAllMethods(); + fClassifier->fMethodsMap.clear(); for (uint32_t i = 0; i < NBITS; ++i) { if (x & (1 << i)) { @@ -249,6 +250,7 @@ void TMVA::VariableImportance::EvaluateImportanceShort() delete subseeddl; fClassifier->DeleteAllMethods(); + fClassifier->fMethodsMap.clear(); } } Float_t normalization = 0.0; @@ -321,6 +323,7 @@ void TMVA::VariableImportance::EvaluateImportanceRandom(UInt_t seeds) delete seeddl; fClassifier->DeleteAllMethods(); + fClassifier->fMethodsMap.clear(); for (uint32_t i = 0; i < 32; ++i) { if (x & (1 << i)) { @@ -360,6 +363,7 @@ void TMVA::VariableImportance::EvaluateImportanceRandom(UInt_t seeds) delete subseeddl; fClassifier->DeleteAllMethods(); + fClassifier->fMethodsMap.clear(); } } } @@ -434,6 +438,7 @@ void TMVA::VariableImportance::EvaluateImportanceAll() delete seeddl; fClassifier->DeleteAllMethods(); + fClassifier->fMethodsMap.clear(); }