24 input =
TFile::Open(
"http://root.cern/files/tmva_class_example.root",
"CACHEREAD");
27 std::cout <<
"ERROR: could not open data file" << std::endl;
46 dataloader->AddVariable(
"myvar1 := var1+var2",
'F');
47 dataloader->AddVariable(
"myvar2 := var1-var2",
"Expression 2",
"",
'F');
48 dataloader->AddVariable(
"var3",
"Variable 3",
"units",
'F');
49 dataloader->AddVariable(
"var4",
"Variable 4",
"units",
'F');
55 dataloader->AddSpectator(
"spec1 := var1*2",
"Spectator 1",
"units",
'F');
56 dataloader->AddSpectator(
"spec2 := var1*3",
"Spectator 2",
"units",
'F');
69 dataloader->SetBackgroundWeightExpression(
"weight");
71 "",
"",
"nTrain_Signal=1000:nTrain_Background=1000:SplitMode=Random:NormMode=NumEvents:!V");
78 "UseBaggedBoost:BaggedSampleFraction=0.5:nCuts=20:MaxDepth=2");
90 c->SetTitle(
"ROC-Integral Curve");
94 if (!
results[i].IsCutsMethod()) {
96 roc->SetLineColorAlpha(i + 1, 0.1);
101 mg->GetXaxis()->SetTitle(
" Signal Efficiency ");
102 mg->GetYaxis()->SetTitle(
" Background Rejection ");
103 c->BuildLegend(0.15, 0.15, 0.3, 0.3);
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 input
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
R__EXTERN TSystem * gSystem
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
virtual void BookMethod(TString methodname, TString methodtitle, TString options="")
Method to book the machine learning method to perform the algorithm.
std::vector< ClassificationResult > & GetResults()
Return the vector of TMVA::Experimental::ClassificationResult objects.
virtual void Evaluate()
Method to perform Train/Test over all ml method booked.
A TMultiGraph is a collection of TGraph (or derived) objects.
virtual Bool_t AccessPathName(const char *path, EAccessMode mode=kFileExists)
Returns FALSE if one can access a file using the specified access mode.
A TTree represents a columnar dataset.
void classification(UInt_t jobs=4)