74 fCurrentMethodIdx(0), fCurrentMethod(0)
83 fCurrentMethodIdx(0), fCurrentMethod(0)
91 std::vector<IMethod*>::const_iterator
itrMethod = fMethods.
begin();
96 if ( (
mva->GetMethodName())==methodTitle )
return mva;
118 for (
UInt_t i=0; i< fMethods.size(); i++)
130 if (
method->fTransformationPointer)
145 Log() << kVERBOSE <<
"Delete method: " << (*itrMethod)->GetName() <<
Endl;
159 for (
UInt_t i=0;i<fMethods.size();i++)
delete fMethods[i];
161 fMethodWeight.clear();
175 if (
gTools().HasAttr( ch,
"UseMainMethodTransformation")) {
200 Log() << kFATAL <<
"Could not read method from XML" <<
Endl;
207 meth->SetModelPersistence(IsModelPersistence());
208 meth->SetSilentFile(IsSilentFile());
210 meth->SetMsgType(kWARNING);
211 meth->ParseOptions();
212 meth->ProcessSetup();
218 meth->RerouteTransformationHandler (&(this->GetTransformationHandler()));
231 TString methodName, methodTitle = GetMethodName(),
237 Log() << kINFO <<
"Read " <<
methodNum <<
" Classifiers" <<
Endl;
238 for (
UInt_t i=0;i<fMethods.size();i++)
delete fMethods[i];
240 fMethodWeight.clear();
242 istr >> dummy >> methodName >> dummy >> fCurrentMethodIdx >> dummy >>
methodWeight;
243 if ((
UInt_t)fCurrentMethodIdx != i) {
244 Log() << kFATAL <<
"Error while reading weight file; mismatch MethodIndex="
245 << fCurrentMethodIdx <<
" i=" << i
246 <<
" MethodName " << methodName
247 <<
" dummy " << dummy
253 istr >> dummy >> methodTitle;
258 methodTitle =
TString::Format(
"%s (%04i)",GetMethodName().Data(),fCurrentMethodIdx);
264 m->ReadWeightsFromStream(
istr);
274 for (
UInt_t i=0;i< fMethods.size(); i++)
mvaValue+=fMethods[i]->GetMvaValue()*fMethodWeight[i];
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t index
const_iterator begin() const
const_iterator end() const
static ClassifierFactory & Instance()
access to the ClassifierFactory singleton creates the instance if needed
Class that contains all the data information.
Interface for all concrete MVA method implementations.
Virtual base Class for all MVA method.
friend class MethodCompositeBase
Class for boosting a TMVA method.
Virtual base class for combining several TMVA method.
void ReadWeightsFromStream(std::istream &istr)
text streamer
virtual ~MethodCompositeBase(void)
delete methods
Double_t GetMvaValue(Double_t *err=nullptr, Double_t *errUpper=nullptr)
return composite MVA response
IMethod * GetMethod(const TString &title) const
accessor by name
void ReadWeightsFromXML(void *wghtnode)
XML streamer.
void AddWeightsXMLTo(void *parent) const
static Types & Instance()
The single instance of "Types" if existing already, or create it (Singleton)
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
create variable transformations
MsgLogger & Endl(MsgLogger &ml)