|
ROOT
Reference Guide |
|
Go to the documentation of this file.
5 #ifndef ROOT_TMVA_Classification
6 #define ROOT_TMVA_Classification
126 class ResultsClassification;
127 namespace Experimental {
134 std::map<UInt_t, std::vector<std::tuple<Float_t, Float_t, Bool_t>>>
fMvaTrain;
135 std::map<UInt_t, std::vector<std::tuple<Float_t, Float_t, Bool_t>>>
174 virtual void Train();
184 std::vector<ClassificationResult> &
GetResults();
std::map< UInt_t, std::vector< std::tuple< Float_t, Float_t, Bool_t > > > fMvaTest
class to storage options for the differents methods
TString GetMethodOptions(TString methodname, TString methodtitle)
return the options for the booked method.
T GetValue(const TString &key)
TString GetDataLoaderName()
Abstract base class for all high level ml algorithms, you can book ml methods like BDT,...
Double_t GetROCIntegral(UInt_t iClass=0, TMVA::Types::ETreeType type=TMVA::Types::kTesting)
Method to get ROC-Integral value from mvas.
TGraph * GetROCGraph(UInt_t iClass=0, TMVA::Types::ETreeType type=TMVA::Types::kTesting)
Method to get TGraph object with the ROC curve.
std::vector< TString > fClassNames
std::vector< IMethod * > fIMethods
virtual void Test()
Perform test evaluation in all booked methods.
ROCCurve * GetROC(UInt_t iClass=0, TMVA::Types::ETreeType type=TMVA::Types::kTesting)
Method to get TMVA::ROCCurve Object.
Classification(DataLoader *loader, TFile *file, TString options)
Contructor to create a two class classifier.
virtual void TestMethod(TString methodname, TString methodtitle)
Lets perform test an specific ml method.
std::vector< ClassificationResult > fResults
ClassificationResult & operator=(const ClassificationResult &r)
MethodBase * GetMethod(TString methodname, TString methodtitle)
Return a TMVA::MethodBase object.
std::vector< ClassificationResult > & GetResults()
return the the vector of TMVA::Experimental::ClassificationResult objects.
const TString GetMethodName() const
Bool_t HasMethodObject(TString methodname, TString methodtitle, Int_t &index)
Allows to check if the TMVA::MethodBase was created and return the index in the vector.
TMVA::ROCCurve * GetROC(TMVA::MethodBase *method, UInt_t iClass=0, TMVA::Types::ETreeType type=TMVA::Types::kTesting)
Method to get TMVA::ROCCurve Object.
void Show()
Method to print the results in stdout.
Bool_t IsCutsMethod(TMVA::MethodBase *method)
Allows to check if the ml method is a Cuts method.
Bool_t IsMethod(TString methodname, TString methodtitle)
Method to check if method was booked.
Double_t GetROCIntegral(TString methodname, TString methodtitle, UInt_t iClass=0)
Method to get ROC-Integral value from mvas.
std::map< UInt_t, std::vector< std::tuple< Float_t, Float_t, Bool_t > > > fMvaTrain
Types::EAnalysisType fAnalysisType
vector of objects with booked methods
Virtual base Class for all MVA method.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
void CopyFrom(TDirectory *src, TFile *file)
virtual void Train()
Method to train all booked ml methods.
virtual void TrainMethod(TString methodname, TString methodtitle)
Lets train an specific ml method.
A TGraph is an object made of two arrays X and Y with npoints each.
Mother of all ROOT objects.
#define ClassDef(name, id)
Describe directory structure in memory.
virtual void Evaluate()
Method to perform Train/Test over all ml method booked.
const TString GetMethodTitle() const
create variable transformations