Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
MethodHMatrix.cxx
Go to the documentation of this file.
1// @(#)root/tmva $Id$
2// Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
3
4/**********************************************************************************
5 * Project: TMVA - a Root-integrated toolkit for multivariate Data analysis *
6 * Package: TMVA *
7 * Class : TMVA::MethodHMatrix *
8 * *
9 * *
10 * Description: *
11 * Implementation (see header file for description) *
12 * *
13 * Authors (alphabetical): *
14 * Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
15 * Peter Speckmayer <Peter.Speckmayer@cern.ch> - CERN, Switzerland *
16 * Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
17 * Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada *
18 * *
19 * Copyright (c) 2005: *
20 * CERN, Switzerland *
21 * U. of Victoria, Canada *
22 * MPI-K Heidelberg, Germany *
23 * *
24 * Redistribution and use in source and binary forms, with or without *
25 * modification, are permitted according to the terms listed in LICENSE *
26 * (see tmva/doc/LICENSE) *
27 **********************************************************************************/
28
29#include "TMVA/MethodHMatrix.h"
30
32#include "TMVA/DataSet.h"
33#include "TMVA/DataSetInfo.h"
34#include "TMVA/IMethod.h"
35#include "TMVA/MethodBase.h"
36#include "TMVA/MsgLogger.h"
37#include "TMVA/Tools.h"
38#include "TMVA/Types.h"
39
40#include "TMatrix.h"
41#include "TVectorT.h"
42#include "TList.h"
43
44#include <iostream>
45#include <algorithm>
46
48
49
50/*! \class TMVA::MethodHMatrix
51\ingroup TMVA
52
53 H-Matrix method, which is implemented as a simple comparison of
54 chi-squared estimators for signal and background, taking into
55 account the linear correlations between the input variables
56
57 This MVA approach is used by the \f$D\emptyset \f$ collaboration (FNAL) for the
58 purpose of electron identification (see, eg.,
59 [hep-ex/9507007](http://arxiv.org/abs/hep-ex/9507007)).
60 As it is implemented in TMVA, it is usually equivalent or worse than
61 the Fisher-Mahalanobis discriminant, and it has only been added for
62 the purpose of completeness.
63 Two chi^2 estimators are computed for an event, each one
64 for signal and background, using the estimates for the means and
65 covariance matrices obtained from the training sample:<br>
66
67\f[
68\chi^2_\eta = (x_\eta(i) - \bar{x}_\eta)^T C_\eta^{-1} (x_\eta(i) - \bar{x}_\eta), \eta = S,B
69\f]
70
71 TMVA then uses as normalised analyser for event \f$ (i) \f$ the ratio:
72\f[
73\frac{(chi_S(i)^2 - chi_B^2(i))}{(chi_S^2(i) + chi_B^2(i))}
74\f]
75*/
76
77
78
79////////////////////////////////////////////////////////////////////////////////
80/// standard constructor for the H-Matrix method
81
83 const TString& methodTitle,
86 : TMVA::MethodBase( jobName, Types::kHMatrix, methodTitle, theData, theOption)
87 ,fInvHMatrixS(0)
88 ,fInvHMatrixB(0)
89 ,fVecMeanS(0)
90 ,fVecMeanB(0)
91{
92}
93
94////////////////////////////////////////////////////////////////////////////////
95/// constructor from weight file
96
100 ,fInvHMatrixS(0)
101 ,fInvHMatrixB(0)
102 ,fVecMeanS(0)
103 ,fVecMeanB(0)
104{
105}
106
107////////////////////////////////////////////////////////////////////////////////
108/// default initialization called by all constructors
109
111{
112 //SetNormalised( kFALSE ); obsolete!
113
114 fInvHMatrixS = new TMatrixD( GetNvar(), GetNvar() );
115 fInvHMatrixB = new TMatrixD( GetNvar(), GetNvar() );
116 fVecMeanS = new TVectorD( GetNvar() );
117 fVecMeanB = new TVectorD( GetNvar() );
118
119 // the minimum requirement to declare an event signal-like
120 SetSignalReferenceCut( 0.0 );
121}
122
123////////////////////////////////////////////////////////////////////////////////
124/// destructor
125
127{
128 if (NULL != fInvHMatrixS) delete fInvHMatrixS;
129 if (NULL != fInvHMatrixB) delete fInvHMatrixB;
130 if (NULL != fVecMeanS ) delete fVecMeanS;
131 if (NULL != fVecMeanB ) delete fVecMeanB;
132}
133
134////////////////////////////////////////////////////////////////////////////////
135/// FDA can handle classification with 2 classes and regression with one regression-target
136
142
143
144////////////////////////////////////////////////////////////////////////////////
145/// MethodHMatrix options: none (apart from those implemented in MethodBase)
146
150
151////////////////////////////////////////////////////////////////////////////////
152/// process user options
153
157
158////////////////////////////////////////////////////////////////////////////////
159/// computes H-matrices for signal and background samples
160
162{
163 // covariance matrices for signal and background
164 ComputeCovariance( kTRUE, fInvHMatrixS );
165 ComputeCovariance( kFALSE, fInvHMatrixB );
166
167 // sanity checks
168 if (TMath::Abs(fInvHMatrixS->Determinant()) < 10E-24) {
169 Log() << kWARNING << "<Train> H-matrix S is almost singular with determinant= "
170 << TMath::Abs(fInvHMatrixS->Determinant())
171 << " did you use the variables that are linear combinations or highly correlated ???"
172 << Endl;
173 }
174 if (TMath::Abs(fInvHMatrixB->Determinant()) < 10E-24) {
175 Log() << kWARNING << "<Train> H-matrix B is almost singular with determinant= "
176 << TMath::Abs(fInvHMatrixB->Determinant())
177 << " did you use the variables that are linear combinations or highly correlated ???"
178 << Endl;
179 }
180
181 if (TMath::Abs(fInvHMatrixS->Determinant()) < 10E-120) {
182 Log() << kFATAL << "<Train> H-matrix S is singular with determinant= "
183 << TMath::Abs(fInvHMatrixS->Determinant())
184 << " did you use the variables that are linear combinations ???"
185 << Endl;
186 }
187 if (TMath::Abs(fInvHMatrixB->Determinant()) < 10E-120) {
188 Log() << kFATAL << "<Train> H-matrix B is singular with determinant= "
189 << TMath::Abs(fInvHMatrixB->Determinant())
190 << " did you use the variables that are linear combinations ???"
191 << Endl;
192 }
193
194 // invert matrix
195 fInvHMatrixS->Invert();
196 fInvHMatrixB->Invert();
197 ExitFromTraining();
198}
199
200////////////////////////////////////////////////////////////////////////////////
201/// compute covariance matrix
202
204{
205 Data()->SetCurrentType(Types::kTraining);
206
207 const UInt_t nvar = DataInfo().GetNVariables();
209
210 // init matrices
211 TVectorD vec(nvar); vec *= 0;
212 TMatrixD mat2(nvar, nvar); mat2 *= 0;
213
214 // initialize internal sum-of-weights variables
216 Double_t *xval = new Double_t[nvar];
217
218 // perform event loop
219 for (Int_t i=0, iEnd=Data()->GetNEvents(); i<iEnd; ++i) {
220
221 // retrieve the original (not transformed) event
222 const Event* origEvt = Data()->GetEvent(i);
223 Double_t weight = origEvt->GetWeight();
224
225 // in case event with neg weights are to be ignored
226 if (IgnoreEventsWithNegWeightsInTraining() && weight <= 0) continue;
227
228 if (DataInfo().IsSignal(origEvt) != isSignal) continue;
229
230 // transform the event
231 GetTransformationHandler().SetTransformationReferenceClass( origEvt->GetClass() );
232 const Event* ev = GetTransformationHandler().Transform( origEvt );
233
234 // event is of good type
235 sumOfWeights += weight;
236
237 // mean values
238 for (ivar=0; ivar<nvar; ivar++) xval[ivar] = ev->GetValue(ivar);
239
240 // covariance matrix
241 for (ivar=0; ivar<nvar; ivar++) {
242
243 vec(ivar) += xval[ivar]*weight;
244 mat2(ivar, ivar) += (xval[ivar]*xval[ivar])*weight;
245
246 for (jvar=ivar+1; jvar<nvar; jvar++) {
247 mat2(ivar, jvar) += (xval[ivar]*xval[jvar])*weight;
248 mat2(jvar, ivar) = mat2(ivar, jvar); // symmetric matrix
249 }
250 }
251 }
252
253 // variance-covariance
254 for (ivar=0; ivar<nvar; ivar++) {
255
256 if (isSignal) (*fVecMeanS)(ivar) = vec(ivar)/sumOfWeights;
257 else (*fVecMeanB)(ivar) = vec(ivar)/sumOfWeights;
258
259 for (jvar=0; jvar<nvar; jvar++) {
261 }
262 }
263
264 delete [] xval;
265}
266
267////////////////////////////////////////////////////////////////////////////////
268/// returns the H-matrix signal estimator
269
271{
272 Double_t s = GetChi2( Types::kSignal );
273 Double_t b = GetChi2( Types::kBackground );
274
275 if (s+b < 0) Log() << kFATAL << "big trouble: s+b: " << s+b << Endl;
276
277 // cannot determine error
278 NoErrorCalc(err, errUpper);
279
280 return (b - s)/(s + b);
281}
282
283////////////////////////////////////////////////////////////////////////////////
284/// compute chi2-estimator for event according to type (signal/background)
285
287{
288 // get original (not transformed) event
289
290 const Event* origEvt = fTmpEvent ? fTmpEvent:Data()->GetEvent();
291
292 // loop over variables
293 UInt_t ivar(0), jvar(0), nvar(GetNvar());
294 std::vector<Double_t> val( nvar );
295
296 // transform the event according to the given type (signal/background)
297 if (type==Types::kSignal)
298 GetTransformationHandler().SetTransformationReferenceClass( fSignalClass );
299 else
300 GetTransformationHandler().SetTransformationReferenceClass( fBackgroundClass );
301
302 const Event* ev = GetTransformationHandler().Transform( origEvt );
303
304 for (ivar=0; ivar<nvar; ivar++) val[ivar] = ev->GetValue( ivar );
305
306 Double_t chi2 = 0;
307 for (ivar=0; ivar<nvar; ivar++) {
308 for (jvar=0; jvar<nvar; jvar++) {
309 if (type == Types::kSignal)
310 chi2 += ( (val[ivar] - (*fVecMeanS)(ivar))*(val[jvar] - (*fVecMeanS)(jvar))
311 * (*fInvHMatrixS)(ivar,jvar) );
312 else
313 chi2 += ( (val[ivar] - (*fVecMeanB)(ivar))*(val[jvar] - (*fVecMeanB)(jvar))
314 * (*fInvHMatrixB)(ivar,jvar) );
315 }
316 }
317
318 // sanity check
319 if (chi2 < 0) Log() << kFATAL << "<GetChi2> negative chi2: " << chi2 << Endl;
320
321 return chi2;
322}
323
324////////////////////////////////////////////////////////////////////////////////
325/// create XML description for HMatrix classification
326
327void TMVA::MethodHMatrix::AddWeightsXMLTo( void* parent ) const
328{
329 void* wght = gTools().AddChild(parent, "Weights");
330 gTools().WriteTVectorDToXML( wght, "VecMeanS", fVecMeanS );
331 gTools().WriteTVectorDToXML( wght, "VecMeanB", fVecMeanB );
332 gTools().WriteTMatrixDToXML( wght, "InvHMatS", fInvHMatrixS );
333 gTools().WriteTMatrixDToXML( wght, "InvHMatB", fInvHMatrixB );
334}
335
336////////////////////////////////////////////////////////////////////////////////
337/// read weights from XML file
338
340{
341 void* descnode = gTools().GetChild(wghtnode);
342 gTools().ReadTVectorDFromXML( descnode, "VecMeanS", fVecMeanS );
344 gTools().ReadTVectorDFromXML( descnode, "VecMeanB", fVecMeanB );
346 gTools().ReadTMatrixDFromXML( descnode, "InvHMatS", fInvHMatrixS );
348 gTools().ReadTMatrixDFromXML( descnode, "InvHMatB", fInvHMatrixB );
349}
350
351////////////////////////////////////////////////////////////////////////////////
352/// read variable names and min/max
353/// NOTE: the latter values are mandatory for the normalisation
354/// in the reader application !!!
355
357{
359 TString var, dummy;
360 istr >> dummy;
361 //this->SetMethodName(dummy);
362
363 // mean vectors
364 for (ivar=0; ivar<GetNvar(); ivar++)
365 istr >> (*fVecMeanS)(ivar) >> (*fVecMeanB)(ivar);
366
367 // inverse covariance matrices (signal)
368 for (ivar=0; ivar<GetNvar(); ivar++)
369 for (jvar=0; jvar<GetNvar(); jvar++)
370 istr >> (*fInvHMatrixS)(ivar,jvar);
371
372 // inverse covariance matrices (background)
373 for (ivar=0; ivar<GetNvar(); ivar++)
374 for (jvar=0; jvar<GetNvar(); jvar++)
375 istr >> (*fInvHMatrixB)(ivar,jvar);
376}
377
378////////////////////////////////////////////////////////////////////////////////
379/// write Fisher-specific classifier response
380
381void TMVA::MethodHMatrix::MakeClassSpecific( std::ostream& fout, const TString& className ) const
382{
383 fout << " // arrays of input evt vs. variable " << std::endl;
384 fout << " double fInvHMatrixS[" << GetNvar() << "][" << GetNvar() << "]; // inverse H-matrix (signal)" << std::endl;
385 fout << " double fInvHMatrixB[" << GetNvar() << "][" << GetNvar() << "]; // inverse H-matrix (background)" << std::endl;
386 fout << " double fVecMeanS[" << GetNvar() << "]; // vector of mean values (signal)" << std::endl;
387 fout << " double fVecMeanB[" << GetNvar() << "]; // vector of mean values (background)" << std::endl;
388 fout << " " << std::endl;
389 fout << " double GetChi2( const std::vector<double>& inputValues, int type ) const;" << std::endl;
390 fout << "};" << std::endl;
391 fout << " " << std::endl;
392 fout << "void " << className << "::Initialize() " << std::endl;
393 fout << "{" << std::endl;
394 fout << " // init vectors with mean values" << std::endl;
395 for (UInt_t ivar=0; ivar<GetNvar(); ivar++) {
396 fout << " fVecMeanS[" << ivar << "] = " << (*fVecMeanS)(ivar) << ";" << std::endl;
397 fout << " fVecMeanB[" << ivar << "] = " << (*fVecMeanB)(ivar) << ";" << std::endl;
398 }
399 fout << " " << std::endl;
400 fout << " // init H-matrices" << std::endl;
401 for (UInt_t ivar=0; ivar<GetNvar(); ivar++) {
402 for (UInt_t jvar=0; jvar<GetNvar(); jvar++) {
403 fout << " fInvHMatrixS[" << ivar << "][" << jvar << "] = "
404 << (*fInvHMatrixS)(ivar,jvar) << ";" << std::endl;
405 fout << " fInvHMatrixB[" << ivar << "][" << jvar << "] = "
406 << (*fInvHMatrixB)(ivar,jvar) << ";" << std::endl;
407 }
408 }
409 fout << "}" << std::endl;
410 fout << " " << std::endl;
411 fout << "inline double " << className << "::GetMvaValue__( const std::vector<double>& inputValues ) const" << std::endl;
412 fout << "{" << std::endl;
413 fout << " // returns the H-matrix signal estimator" << std::endl;
414 fout << " std::vector<double> inputValuesSig = inputValues;" << std::endl;
415 fout << " std::vector<double> inputValuesBgd = inputValues;" << std::endl;
416 if (GetTransformationHandler().GetTransformationList().GetSize() != 0) {
417
418 UInt_t signalClass =DataInfo().GetClassInfo("Signal")->GetNumber();
419 UInt_t backgroundClass=DataInfo().GetClassInfo("Background")->GetNumber();
420
421 fout << " Transform(inputValuesSig," << signalClass << ");" << std::endl;
422 fout << " Transform(inputValuesBgd," << backgroundClass << ");" << std::endl;
423 }
424
425 // fout << " for(uint i=0; i<GetNvar(); ++i) std::cout << inputValuesSig.at(i) << \" \" << inputValuesBgd.at(i) << std::endl; " << std::endl;
426
427 fout << " double s = GetChi2( inputValuesSig, " << Types::kSignal << " );" << std::endl;
428 fout << " double b = GetChi2( inputValuesBgd, " << Types::kBackground << " );" << std::endl;
429
430 // fout << " std::cout << s << \" \" << b << std::endl; " << std::endl;
431
432 fout << " " << std::endl;
433 fout << " if (s+b <= 0) std::cout << \"Problem in class " << className << "::GetMvaValue__: s+b = \"" << std::endl;
434 fout << " << s+b << \" <= 0 \" << std::endl;" << std::endl;
435 fout << " " << std::endl;
436 fout << " return (b - s)/(s + b);" << std::endl;
437 fout << "}" << std::endl;
438 fout << " " << std::endl;
439 fout << "inline double " << className << "::GetChi2( const std::vector<double>& inputValues, int type ) const" << std::endl;
440 fout << "{" << std::endl;
441 fout << " // compute chi2-estimator for event according to type (signal/background)" << std::endl;
442 fout << " " << std::endl;
443 fout << " size_t ivar,jvar;" << std::endl;
444 fout << " double chi2 = 0;" << std::endl;
445 fout << " for (ivar=0; ivar<GetNvar(); ivar++) {" << std::endl;
446 fout << " for (jvar=0; jvar<GetNvar(); jvar++) {" << std::endl;
447 fout << " if (type == " << Types::kSignal << ") " << std::endl;
448 fout << " chi2 += ( (inputValues[ivar] - fVecMeanS[ivar])*(inputValues[jvar] - fVecMeanS[jvar])" << std::endl;
449 fout << " * fInvHMatrixS[ivar][jvar] );" << std::endl;
450 fout << " else" << std::endl;
451 fout << " chi2 += ( (inputValues[ivar] - fVecMeanB[ivar])*(inputValues[jvar] - fVecMeanB[jvar])" << std::endl;
452 fout << " * fInvHMatrixB[ivar][jvar] );" << std::endl;
453 fout << " }" << std::endl;
454 fout << " } // loop over variables " << std::endl;
455 fout << " " << std::endl;
456 fout << " // sanity check" << std::endl;
457 fout << " if (chi2 < 0) std::cout << \"Problem in class " << className << "::GetChi2: chi2 = \"" << std::endl;
458 fout << " << chi2 << \" < 0 \" << std::endl;" << std::endl;
459 fout << " " << std::endl;
460 fout << " return chi2;" << std::endl;
461 fout << "}" << std::endl;
462 fout << " " << std::endl;
463 fout << "// Clean up" << std::endl;
464 fout << "inline void " << className << "::Clear() " << std::endl;
465 fout << "{" << std::endl;
466 fout << " // nothing to clear" << std::endl;
467 fout << "}" << std::endl;
468}
469
470////////////////////////////////////////////////////////////////////////////////
471/// get help message text
472///
473/// typical length of text line:
474/// "|--------------------------------------------------------------|"
475
477{
478 Log() << Endl;
479 Log() << gTools().Color("bold") << "--- Short description:" << gTools().Color("reset") << Endl;
480 Log() << Endl;
481 Log() << "The H-Matrix classifier discriminates one class (signal) of a feature" << Endl;
482 Log() << "vector from another (background). The correlated elements of the" << Endl;
483 Log() << "vector are assumed to be Gaussian distributed, and the inverse of" << Endl;
484 Log() << "the covariance matrix is the H-Matrix. A multivariate chi-squared" << Endl;
485 Log() << "estimator is built that exploits differences in the mean values of" << Endl;
486 Log() << "the vector elements between the two classes for the purpose of" << Endl;
487 Log() << "discrimination." << Endl;
488 Log() << Endl;
489 Log() << gTools().Color("bold") << "--- Performance optimisation:" << gTools().Color("reset") << Endl;
490 Log() << Endl;
491 Log() << "The TMVA implementation of the H-Matrix classifier has been shown" << Endl;
492 Log() << "to underperform in comparison with the corresponding Fisher discriminant," << Endl;
493 Log() << "when using similar assumptions and complexity. Its use is therefore" << Endl;
494 Log() << "depreciated. Only in cases where the background model is strongly" << Endl;
495 Log() << "non-Gaussian, H-Matrix may perform better than Fisher. In such" << Endl;
496 Log() << "occurrences the user is advised to employ non-linear classifiers. " << Endl;
497 Log() << Endl;
498 Log() << gTools().Color("bold") << "--- Performance tuning via configuration options:" << gTools().Color("reset") << Endl;
499 Log() << Endl;
500 Log() << "None" << Endl;
501}
#define REGISTER_METHOD(CLASS)
for example
#define b(i)
Definition RSha256.hxx:100
constexpr Bool_t kFALSE
Definition RtypesCore.h:108
constexpr Bool_t kTRUE
Definition RtypesCore.h:107
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 Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
TMatrixT< Double_t > TMatrixD
Definition TMatrixDfwd.h:23
TVectorT< Double_t > TVectorD
Definition TVectorDfwd.h:23
Class that contains all the data information.
Definition DataSetInfo.h:62
Virtual base Class for all MVA method.
Definition MethodBase.h:111
H-Matrix method, which is implemented as a simple comparison of chi-squared estimators for signal and...
void Train() override
computes H-matrices for signal and background samples
void GetHelpMessage() const override
get help message text
void ReadWeightsFromXML(void *wghtnode) override
read weights from XML file
virtual ~MethodHMatrix()
destructor
void AddWeightsXMLTo(void *parent) const override
create XML description for HMatrix classification
void ReadWeightsFromStream(std::istream &istr) override
read variable names and min/max NOTE: the latter values are mandatory for the normalisation in the re...
Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets) override
FDA can handle classification with 2 classes and regression with one regression-target.
MethodHMatrix(const TString &jobName, const TString &methodTitle, DataSetInfo &theData, const TString &theOption="")
standard constructor for the H-Matrix method
void ComputeCovariance(Bool_t, TMatrixD *)
compute covariance matrix
Double_t GetMvaValue(Double_t *err=nullptr, Double_t *errUpper=nullptr) override
returns the H-matrix signal estimator
void DeclareOptions() override
MethodHMatrix options: none (apart from those implemented in MethodBase)
void Init() override
default initialization called by all constructors
Double_t GetChi2(Types::ESBType)
compute chi2-estimator for event according to type (signal/background)
void MakeClassSpecific(std::ostream &, const TString &) const override
write Fisher-specific classifier response
void ProcessOptions() override
process user options
void ReadTVectorDFromXML(void *node, const char *name, TVectorD *vec)
Definition Tools.cxx:1267
const TString & Color(const TString &)
human readable color strings
Definition Tools.cxx:828
void WriteTVectorDToXML(void *node, const char *name, TVectorD *vec)
Definition Tools.cxx:1259
void WriteTMatrixDToXML(void *node, const char *name, TMatrixD *mat)
XML helpers.
Definition Tools.cxx:1243
void ReadTMatrixDFromXML(void *node, const char *name, TMatrixD *mat)
Definition Tools.cxx:1276
void * GetChild(void *parent, const char *childname=nullptr)
get child node
Definition Tools.cxx:1150
void * AddChild(void *parent, const char *childname, const char *content=nullptr, bool isRootNode=false)
add child node
Definition Tools.cxx:1124
void * GetNextChild(void *prevchild, const char *childname=nullptr)
XML helpers.
Definition Tools.cxx:1162
Singleton class for Global types used by TMVA.
Definition Types.h:71
@ kSignal
Never change this number - it is elsewhere assumed to be zero !
Definition Types.h:135
@ kBackground
Definition Types.h:136
@ kClassification
Definition Types.h:127
@ kTraining
Definition Types.h:143
Basic string class.
Definition TString.h:138
create variable transformations
Tools & gTools()
MsgLogger & Endl(MsgLogger &ml)
Definition MsgLogger.h:148
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.
Definition TMathBase.h:124