19 cout <<
"read file: " << fileName << endl;
20 cout <<
"kValue = " <<
kValue << endl;
29 gDirectory->Get(
"MultiTargetRegressionFoam")) {
31 fileName.
Data(),
"TMVA::kValueDensity", (
useTMVAStyle ?
"kTRUE" :
"kFALSE") );
32 cbar->AddButton(
"Event density",
macro,
"Plot event density",
"button" );
36 cbar->AddButton(
"Discriminator",
macro,
"Plot discriminator",
"button" );
37 }
else if (
gDirectory->Get(
"MonoTargetRegressionFoam")){
40 cbar->AddButton(
"Target",
macro,
"Plot target",
"button" );
42 cout <<
"Error: no foams found in file: " << fileName << endl;
48 cbar->AddButton(
"Variance",
macro_rms,
"Plot variance",
"button" );
63 cout <<
"read file: " << fileName << endl;
94 new TObjString(
"MultiTargetRegression Foam")));
96 cout <<
"ERROR: no Foams found in file: " << fileName << endl;
107 <<
" (dimension = " <<
kDim <<
")" << endl;
142 "1-dimensional PDEFoam", 400, 400);
178 (
Int_t)(400/(1.-0.2)), 400);
184 foam->GetVariableName(i)->String().Data(),
185 foam->GetVariableName(k)->String().Data(),
186 foam->GetVariableName(i)->String().Data(),
187 foam->GetVariableName(k)->String().Data());
205 cout <<
"read file: " << fileName << endl;
267 for (
Int_t i = 0; i <
vec->GetNrows(); ++i)
271 if (
cell->GetStat() != 1) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TStyle * gStyle
virtual void SetFillColor(Color_t fcolor)
Set the fill area color.
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetRightMargin(Float_t rightmargin)
Set Pad right margin in fraction of the pad width.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
void Update() override
Update canvas pad buffers.
static Int_t GetColor(const char *hexcolor)
Static method returning color number for color specified by hex color string of form: "#rrggbb",...
A Control Bar is a fully user configurable tool which provides fast access to frequently used operati...
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.
1-D histogram with a double per channel (see TH1 documentation)
2-D histogram with a double per channel (see TH1 documentation)
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Use the TLine constructor to create a simple line.
This class is the abstract kernel interface for PDEFoam.
This class is a trivial PDEFoam kernel estimator.
Implementation of PDEFoam.
Collectable string class.
Class used by TMap to store (key,value) pairs.
A Pave (see TPave) with text, lines or/and boxes inside.
virtual TText * AddText(Double_t x1, Double_t y1, const char *label)
Add a new Text line to this pavetext at given coordinates.
void Draw(Option_t *option="") override
Draw this pavetext with its current attributes.
virtual void SetBorderSize(Int_t bordersize=4)
Sets the border size of the TPave box and shadow.
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.
void SetNumberContours(Int_t number=20)
Set the default number of contour levels when drawing 2-d plots.
void Initialize(Bool_t useTMVAStyle=kTRUE)
void Plot1DimFoams(TList &foam_list, TMVA::ECellValue cell_value, const TString &cell_value_description, TMVA::PDEFoamKernelBase *kernel)
void PlotNDimFoams(TList &foam_list, TMVA::ECellValue cell_value, const TString &cell_value_description, TMVA::PDEFoamKernelBase *kernel)
void PlotFoams(TString fileName="weights/TMVAClassification_PDEFoam.weights_foams.root", bool useTMVAStyle=kTRUE)
void DrawCell(TMVA::PDEFoamCell *cell, TMVA::PDEFoam *foam, Double_t x, Double_t y, Double_t xscale, Double_t yscale)
void Plot(TString fileName, TMVA::ECellValue cv, TString cv_long, bool useTMVAStyle=kTRUE)
void PlotCellTree(TString fileName, TString cv_long, bool useTMVAStyle=kTRUE)