26 cout <<
"error could not find jobs" << endl;
40 if (
debug) cout <<
"loop targets " <<
itrgt<<endl;
50 c->SetTopMargin(0.28);
51 c->SetBottomMargin(0.1);
72 if (
debug) cout <<
"--- Found directory for method: " << methodTitle << endl;
76 if (
histKey->ReadObj()->InheritsFrom(
"TH1F") ){
78 if( !s.Contains(
"Quadr_Dev") )
continue;
81 if( !s.Contains(
"best90perc") && s.Contains(
"train"))
ihist=0;
82 if( s.Contains(
"best90perc") && s.Contains(
"train"))
ihist=1;
83 if( !s.Contains(
"best90perc") && s.Contains(
"test"))
ihist=2;
84 if( s.Contains(
"best90perc") && s.Contains(
"test"))
ihist=3;
85 if (
debug) cout <<
"using histogram" << s <<
", ihist="<<
ihist<<endl;
113 cout <<
"--- result differ significantly using log scale for display of regression results"<< endl;
122 legend->SetTextSize( 0.035 );
128 cout <<
"Training: Average Deviation between target " <<
itrgt <<
" and estimate" << endl;
129 cout <<
TString::Format(
"%-15s%-15s%-15s",
"Method",
"Average Dev.",
"trunc. Aver.(90%)") <<endl;
132 (
const char*)
mvaNames[i],
m[0][i],
m[1][i])<<endl;
134 hr->GetXaxis()->SetBinLabel(i+1,
" ");
137 cout <<
"Testing: Average Deviation between target " <<
itrgt <<
" and estimate" << endl;
138 cout <<
TString::Format(
"%-15s%-15s%-15s",
"Method",
"Average Dev.",
"trunc. Aver.(90%)") <<endl;
141 (
const char*)
mvaNames[i],
m[2][i],
m[3][i])<<endl;
150 c->GetFrame()->SetFillColor(21);
151 c->GetFrame()->SetBorderSize(12);
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory") override
Find a directory named "apath".
Describe directory structure in memory.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
A TGraphErrors is a TGraph with error bars.
1-D histogram with a float per channel (see TH1 documentation)
Book space in a file, create I/O buffers, to fill them, (un)compress them.
To draw Mathematical Formula.
This class displays a legend box (TPaveText) containing several legend entries.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
RVec< PromoteType< T > > log10(const RVec< T > &v)
UInt_t GetListOfJobs(TFile *file, TList &jobdirs)
void Initialize(Bool_t useTMVAStyle=kTRUE)
void GetMethodTitle(TString &name, TKey *ikey)
void plot_logo(Float_t v_scale=1.0, Float_t skew=1.0)
TFile * OpenFile(const TString &fin)
Int_t GetNumberOfTargets(TDirectory *dir)
void imgconv(TCanvas *c, const TString &fname)
void regression_averagedevs(TString dataset, TString fin, Int_t Nevt=-1, Bool_t useTMVAStyle=kTRUE)