21 while ((key = (
TKey*)next())) {
39 while ((key = (
TKey*)next())) {
67 cout <<
"--- Launch TMVA GUI to view input file: " << fName << endl;
75 cout <<
"==> Abort TMVARegGui, please verify filename" << endl;
81 cout <<
"==> Abort TMVARegGui, please verify if dataset exist" << endl;
103 bar->
AddButton(
"Quit",
".q",
"Quit",
"button");
108 gROOT->SaveContext();
138 tmp.ReplaceAll(
"InputVariables_",
"").Data() );
139 if (
tmp.Contains(
"Id" )) title =
"Input variables and target(s) (training sample)";
142 TString::Format(
"TMVA::variables(\"%s\",\"%s\",\"%s\",\"%s\",kTRUE)",
dataset.Data() , fName, str->GetString().Data(), title.
Data() ),
143 TString::Format(
"Plots all '%s'-transformed input variables and target(s) (macro variables(...))",
144 str->GetString().Data() ),
150 it.Reset(); ch =
'a';
154 tmp.ReplaceAll(
"InputVariables_",
"").Data() );
155 if (
tmp.Contains(
"Id" )) title =
"Input variable correlations (scatter profiles)";
158 TString::Format(
"TMVA::CorrGui(\"%s\",\"%s\",\"%s\",\"%s\",kTRUE)",
dataset.Data() , fName, str->GetString().Data(), title.
Data() ),
159 TString::Format(
"Plots all correlation profiles between '%s'-transformed input variables (macro CorrGui(...))",
160 str->GetString().Data() ),
168 "Plots signal and background correlation summaries for all input variables (macro correlations.cxx)",
172 TString::Format(
"(%ia) Regression Output Deviation versus Target (test sample)", ++
ic ),
174 "Plots the deviation between regression output and target versus target on test data (macro deviations(...,0))",
178 TString::Format(
"(%ib) Regression Output Deviation versus Target (training sample)",
ic ),
180 "Plots the deviation between regression output and target versus target on test data (macro deviations(...,0))",
184 TString::Format(
"(%ic) Regression Output Deviation versus Input Variables (test sample)",
ic ),
186 "Plots the deviation between regression output and target versus target on test data (macro deviations(...,0))",
190 TString::Format(
" (%id) Regression Output Deviation versus Input Variables (training sample) ",
ic ),
192 "Plots the deviation between regression output and target versus target on test data (macro deviations(...,0))",
198 "Plot Summary of average deviations: MVAvalue - target (macro regression_averagedevs.cxx)",
204 "Plots the MLP weights (macro network.cxx)",
210 "Plots error estimator versus training epoch for training and test samples (macro annconvergencetest.cxx)",
215 TString::Format(
"TMVA::PlotFoams(\"%s/weights/TMVARegression_PDEFoam.weights_foams.root\")",
dataset.Data()),
216 "Plot Foams (macro PlotFoams.cxx)",
222 "Plots the Regression Trees trained by BDT algorithms (macro BDT_Reg(itree,...))",
228 "Plots to monitor boosting and pruning of regression trees (macro BDTControlPlots.cxx)",
231 cbar->AddSeparator();
236 cbar->SetTextColor(
"black");
247 cout <<
"=== Note: inactive buttons indicate that the corresponding methods were not trained ===" << endl;
250 gROOT->SaveContext();
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
static TList * TMVARegGui_keyContent
static std::vector< TString > TMVARegGui_inactiveButtons
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
virtual Int_t GetEntries() const
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
void Show()
Show control bar.
void AddSeparator()
Add separator.
void SetButtonWidth(UInt_t width)
Sets the width in pixels for control bar button.
void AddButton(TControlBarButton *button)
Add button.
void SetTextColor(const char *colorName)
Sets text color for control bar buttons, e.g.:
TList * GetListOfKeys() const override
TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory") override
Find a directory named "apath".
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.
void Close(Option_t *option="") override
Close a file.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
TObject * At(Int_t idx) const override
Returns the object at position idx. Returns 0 if idx is out of range.
const char * GetName() const override
Returns name of object.
Collectable string class.
const char * Data() const
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
void SetScreenFactor(Float_t factor=1)
virtual const char * GetIncludePath()
Get the list of include path.
virtual void SetIncludePath(const char *includePath)
IncludePath should contain the list of compiler flags to indicate where to find user defined header f...
UInt_t GetListOfKeys(TList &keys, TString inherits, TDirectory *dir=nullptr)
TList * RegGuiGetKeyList(const TString &pattern)
void TMVARegGui(const char *fName="TMVAReg.root", TString dataset="")
void RegGuiActionButton(TControlBar *cbar, const TString &title, const TString ¯o, const TString &comment, const TString &buttonType, TString requiredKey="")