40 #ifndef ROOT_TMVA_Factory 41 #define ROOT_TMVA_Factory 60 #ifndef ROOT_TMVA_Configurable 63 #ifndef ROOT_TMVA_Types 66 #ifndef ROOT_TMVA_DataSet 80 class DataInputHandler;
84 class VariableTransformBase;
102 virtual const char*
GetName()
const {
return "Factory"; }
182 TH1F*
GetImportance(
const int nbits,std::vector<Double_t> importances,std::vector<TString> varNames);
TH1F * GetImportance(const int nbits, std::vector< Double_t > importances, std::vector< TString > varNames)
Double_t GetROCIntegral(DataLoader *loader, TString theMethodName)
MethodBase * BookMethod(DataLoader *loader, TString theMethodName, TString methodTitle, TString theOption="")
std::vector< TMVA::VariableTransformBase * > fDefaultTrfs
ROOT output file.
void EvaluateAllVariables(DataLoader *loader, TString options="")
iterates over all MVA input varables and evaluates them
Bool_t fROC
enable to calculate corelations
void OptimizeAllMethodsForClassification(TString fomType="ROCIntegral", TString fitType="FitGA")
TH1F * EvaluateImportanceShort(DataLoader *loader, Types::EMVA theMethod, TString methodTitle, const char *theOption="")
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
Bool_t Verbose(void) const
void OptimizeAllMethodsForRegression(TString fomType="ROCIntegral", TString fitType="FitGA")
TString fTransformations
option string given by construction (presently only "V")
tomato 1-D histogram with a float per channel (see TH1 documentation)}
void TrainAllMethods()
iterates through all booked methods and calls training
void WriteDataInformation(DataSetInfo &fDataSetInfo)
void TrainAllMethodsForClassification(void)
TH1F * EvaluateImportanceRandom(DataLoader *loader, UInt_t nseeds, Types::EMVA theMethod, TString methodTitle, const char *theOption="")
void TrainAllMethodsForRegression(void)
#define ClassDef(name, id)
TH1F * EvaluateImportance(DataLoader *loader, VIType vitype, Types::EMVA theMethod, TString methodTitle, const char *theOption="")
Evaluate Variable Importance.
Bool_t fModelPersistence
the training type
TH1F * EvaluateImportanceAll(DataLoader *loader, Types::EMVA theMethod, TString methodTitle, const char *theOption="")
Bool_t IsModelPersistence()
std::map< TString, MVector * > fMethodsMap
Bool_t fSilentFile
enable to calculate ROC values
virtual ~Factory()
destructor delete fATreeEvent;
std::map< TString, Double_t > OptimizeAllMethods(TString fomType="ROCIntegral", TString fitType="FitGA")
iterates through all booked methods and sees if they use parameter tuning and if so.
TDirectory * RootBaseDir()
Bool_t fCorrelations
verbose mode
void EvaluateAllMethods(void)
iterates over all MVAs that have been booked, and calls their evaluation methods
void Greetings()
print welcome message options are: kLogoWelcomeMsg, kIsometricWelcomeMsg, kLeanWelcomeMsg ...
void SetVerbose(Bool_t v=kTRUE)
void SetInputTreesFromEventAssignTrees()
Describe directory structure in memory.
TGraph * GetROCCurve(DataLoader *loader, TString theMethodName, Bool_t fLegend=kTRUE)
void PrintHelpMessage(const TString &datasetname, const TString &methodTitle="") const
Print predefined help message of classifier iterate over methods and test.
Abstract ClassifierFactory template that handles arbitrary types.
TString fOptions
list of transformations on default DataSet
Factory(TString theJobName, TFile *theTargetFile, TString theOption="")
standard constructor jobname : this name will appear in all weight file names produced by the MVAs th...
TString fJobName
used in contructor wihtout file
MethodBase * BookMethod(DataLoader *, TMVA::Types::EMVA, TString, TString, TMVA::Types::EMVA, TString)
A Graph is a graphics object made of two arrays X and Y with npoints each.
void DeleteAllMethods(void)
delete methods
A TTree object has a header with a name and a title.
Types::EAnalysisType fAnalysisType
jobname, used as extension in weight file names
std::vector< IMethod * > MVector
virtual const char * GetName() const
Returns name of object.
virtual void MakeClass(const TString &datasetname, const TString &methodTitle="") const
IMethod * GetMethod(const TString &datasetname, const TString &title) const
Bool_t fVerbose
List of transformations to test.