85 input =
TFile::Open(
"http://root.cern/files/tmva_reg_example.root",
"CACHEREAD");
89 std::cout <<
"ERROR: could not open data file " <<
fname << std::endl;
112 dataloader->AddVariable(
"var1",
"Variable 1",
"units",
'F');
113 dataloader->AddVariable(
"var2",
"Variable 2",
"units",
'F');
124 std::cout <<
"--- TMVACrossValidationRegression: Using input file: " <<
inputFile->GetName() << std::endl;
136 ":NormMode=NumEvents"
150 TString analysisType =
"Regression";
170 "!H:!V:NTrees=500:BoostType=Grad:Shrinkage=0.1:"
171 "UseBaggedBoost:BaggedSampleFraction=0.5:nCuts=20:MaxDepth=3");
189 std::cout <<
"==> Wrote root file: " <<
outputFile->GetName() << std::endl;
190 std::cout <<
"==> TMVACrossValidationRegression is done!" << std::endl;
197 if (!
gROOT->IsBatch()) {
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 specialized string object used for TTree selections.
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.
Class to perform cross validation, splitting the dataloader into folds.
const char * Data() const
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 TMVAGui(const char *fName="TMVA.root", TString dataset="")