Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::Types Class Reference

Singleton class for Global types used by TMVA.

Definition at line 71 of file Types.h.

Public Types

enum  EAnalysisType {
  kClassification = 0 , kRegression , kMulticlass , kNoAnalysisType ,
  kMaxAnalysisType
}
 
enum  EBoostStage {
  kBoostProcBegin =0 , kBeforeTraining , kBeforeBoosting , kAfterBoosting ,
  kBoostProcEnd
}
 
enum  EMVA {
  kVariable = 0 , kCuts , kLikelihood , kPDERS ,
  kHMatrix , kFisher , kKNN , kCFMlpANN ,
  kTMlpANN , kBDT , kDT , kRuleFit ,
  kSVM , kMLP , kBayesClassifier , kFDA ,
  kBoost , kPDEFoam , kLD , kPlugins ,
  kCategory , kDNN , kDL , kPyRandomForest ,
  kPyAdaBoost , kPyGTB , kPyKeras , kPyTorch ,
  kC50 , kRSNNS , kRSVM , kRXGB ,
  kCrossValidation , kMaxMethod
}
 
enum  ESBType {
  kSignal = 0 , kBackground , kSBBoth , kMaxSBType ,
  kTrueType
}
 
enum  ETreeType {
  kTraining = 0 , kTesting , kMaxTreeType , kValidation ,
  kTrainingOriginal
}
 
enum  EVariableTransform {
  kIdentity = 0 , kDecorrelated , kNormalized , kPCA ,
  kRearranged , kGauss , kUniform , kMaxVariableTransform
}
 

Public Member Functions

 ~Types ()
 
Bool_t AddTypeMapping (Types::EMVA method, const TString &methodname)
 
TString GetMethodName (Types::EMVA method) const
 
Types::EMVA GetMethodType (const TString &method) const
 returns the method type (enum) for a given method (string)
 

Static Public Member Functions

static void DestroyInstance ()
 "destructor" of the single instance
 
static TypesInstance ()
 The single instance of "Types" if existing already, or create it (Singleton)
 

Private Member Functions

 Types ()
 constructor
 
MsgLoggerLog () const
 

Private Attributes

MsgLoggerfLogger
 ! message logger
 
std::map< TString, TMVA::Types::EMVAfStr2type
 types-to-text map
 

Static Private Attributes

static std::atomic< Types * > fgTypesPtr {0}
 

#include <TMVA/Types.h>

Member Enumeration Documentation

◆ EAnalysisType

Enumerator
kClassification 
kRegression 
kMulticlass 
kNoAnalysisType 
kMaxAnalysisType 

Definition at line 126 of file Types.h.

◆ EBoostStage

Enumerator
kBoostProcBegin 
kBeforeTraining 
kBeforeBoosting 
kAfterBoosting 
kBoostProcEnd 

Definition at line 150 of file Types.h.

◆ EMVA

Enumerator
kVariable 
kCuts 
kLikelihood 
kPDERS 
kHMatrix 
kFisher 
kKNN 
kCFMlpANN 
kTMlpANN 
kBDT 
kDT 
kRuleFit 
kSVM 
kMLP 
kBayesClassifier 
kFDA 
kBoost 
kPDEFoam 
kLD 
kPlugins 
kCategory 
kDNN 
kDL 
kPyRandomForest 
kPyAdaBoost 
kPyGTB 
kPyKeras 
kPyTorch 
kC50 
kRSNNS 
kRSVM 
kRXGB 
kCrossValidation 
kMaxMethod 

Definition at line 76 of file Types.h.

◆ ESBType

Enumerator
kSignal 

Never change this number - it is elsewhere assumed to be zero !

kBackground 
kSBBoth 
kMaxSBType 
kTrueType 

Definition at line 134 of file Types.h.

◆ ETreeType

Enumerator
kTraining 
kTesting 
kMaxTreeType 

also used as temporary storage for trees not yet assigned for testing;training...

kValidation 

these are placeholders... currently not used, but could be moved "forward" if

kTrainingOriginal 

ever needed

Definition at line 142 of file Types.h.

◆ EVariableTransform

Enumerator
kIdentity 
kDecorrelated 
kNormalized 
kPCA 
kRearranged 
kGauss 
kUniform 
kMaxVariableTransform 

Definition at line 114 of file Types.h.

Constructor & Destructor Documentation

◆ ~Types()

TMVA::Types::~Types ( )

Definition at line 61 of file Types.cxx.

◆ Types()

TMVA::Types::Types ( )
private

constructor

Definition at line 56 of file Types.cxx.

Member Function Documentation

◆ AddTypeMapping()

Bool_t TMVA::Types::AddTypeMapping ( Types::EMVA  method,
const TString methodname 
)

Definition at line 101 of file Types.cxx.

◆ DestroyInstance()

void TMVA::Types::DestroyInstance ( )
static

"destructor" of the single instance

Definition at line 90 of file Types.cxx.

◆ GetMethodName()

TString TMVA::Types::GetMethodName ( Types::EMVA  method) const

Definition at line 136 of file Types.cxx.

◆ GetMethodType()

TMVA::Types::EMVA TMVA::Types::GetMethodType ( const TString method) const

returns the method type (enum) for a given method (string)

Definition at line 121 of file Types.cxx.

◆ Instance()

TMVA::Types & TMVA::Types::Instance ( )
static

The single instance of "Types" if existing already, or create it (Singleton)

Definition at line 70 of file Types.cxx.

◆ Log()

MsgLogger & TMVA::Types::Log ( ) const
inlineprivate

Definition at line 182 of file Types.h.

Member Data Documentation

◆ fgTypesPtr

std::atomic< TMVA::Types * > TMVA::Types::fgTypesPtr {0}
staticprivate

Definition at line 173 of file Types.h.

◆ fLogger

MsgLogger* TMVA::Types::fLogger
mutableprivate

! message logger

Definition at line 181 of file Types.h.

◆ fStr2type

std::map<TString, TMVA::Types::EMVA> TMVA::Types::fStr2type
private

types-to-text map

Definition at line 180 of file Types.h.

Libraries for TMVA::Types:

The documentation for this class was generated from the following files: