21 while ((key = (
TKey*)next())) {
32 cbar->
AddButton( title, macro, comment, buttonType );
35 if (requiredKey !=
"") {
39 while ((key = (TKey*)next())) {
40 if (TString(key->GetName()).Contains( requiredKey )) { found =
kTRUE;
break; }
53 TString curMacroPath(
gROOT->GetMacroPath());
55 gROOT->SetMacroPath(curMacroPath+
":./:$ROOTSYS/tmva/test/:");
64 TString newIncludePath=TString(
"-I../ ")+curIncludePath;
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;
93 TControlBar *bar=
new TControlBar(
"vertical",
"Select dataset", 0, 0);
103 bar->
AddButton(
"Quit",
".q",
"Quit",
"button");
108 gROOT->SaveContext();
117 TString defaultRequiredClassifier =
"";
123 TControlBar* cbar =
new TControlBar(
"vertical",
"TMVA Plotting Macros for Regression", 0, 0 );
125 const TString buttonType =
"button";
132 TListIter it( keylist );
133 TObjString* str =
nullptr;
135 while ( (str = (TObjString*)it()) ) {
137 TString title =
TString::Format(
"Input variables and target(s) '%s'-transformed (training sample)",
138 tmp.ReplaceAll(
"InputVariables_",
"").Data() );
139 if (
tmp.Contains(
"Id" )) title =
"Input variables and target(s) (training sample)";
143 TString::Format(
"Plots all '%s'-transformed input variables and target(s) (macro variables(...))",
150 it.Reset(); ch =
'a';
151 while ( (str = (TObjString*)it()) ) {
153 TString title =
TString::Format(
"Input variable correlations '%s'-transformed (scatter profiles)",
154 tmp.ReplaceAll(
"InputVariables_",
"").Data() );
155 if (
tmp.Contains(
"Id" )) title =
"Input variable correlations (scatter profiles)";
159 TString::Format(
"Plots all correlation profiles between '%s'-transformed input variables (macro CorrGui(...))",
166 TString::Format(
"(%i) Input Variable Linear Correlation Coefficients", ++ic ),
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))",
175 buttonType, defaultRequiredClassifier );
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))",
181 buttonType, defaultRequiredClassifier );
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))",
187 buttonType, defaultRequiredClassifier );
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))",
193 buttonType, defaultRequiredClassifier );
196 TString::Format(
"(%i) Summary of Average Regression Deviations ", ++ic ),
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)",
217 buttonType,
"PDEFoam" );
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)",
247 cout <<
"=== Note: inactive buttons indicate that the corresponding methods were not trained ===" << endl;
250 gROOT->SaveContext();
return
Invalidate stored TCling state for declarations included in transaction âTâ.
static TList * TMVARegGui_keyContent
static std::vector< TString > TMVARegGui_inactiveButtons
R__EXTERN TStyle * gStyle
R__EXTERN TSystem * gSystem
virtual Int_t GetEntries() const
TObject * Clone(const char *newname="") const override
Make a clone of an collection using the Streamer facility.
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 SetButtonState(const char *label, Int_t state=0)
Sets a state for control bar button 'label'; possible states are 0-kButtonUp, 1-kButtonDown,...
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".
virtual TList * GetListOfKeys() const
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 TString & GetString() const
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...
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="")