85 std::cout <<
"ERROR: could not open data file " <<
fname << std::endl;
108 dataloader->AddVariable(
"var1",
"Variable 1",
"units",
'F');
109 dataloader->AddVariable(
"var2",
"Variable 2",
"units",
'F');
120 std::cout <<
"--- TMVACrossValidationRegression: Using input file: " <<
inputFile->GetName() << std::endl;
132 ":NormMode=NumEvents"
146 TString analysisType =
"Regression";
166 "!H:!V:NTrees=500:BoostType=Grad:Shrinkage=0.1:"
167 "UseBaggedBoost:BaggedSampleFraction=0.5:nCuts=20:MaxDepth=3");
185 std::cout <<
"==> Wrote root file: " <<
outputFile->GetName() << std::endl;
186 std::cout <<
"==> TMVACrossValidationRegression is done!" << std::endl;
193 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.
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="")