25 cout <<
"Could not locate directory 'Method_Boost' in file " << fin << endl;
29 TIter keyIter(&titles);
40 const Int_t nPlots = 6;
46 sprintf( cn,
"cv_%s", titName.
Data() );
54 TString hname[nPlots]={
"BoostWeight",
"MethodWeight",
"ErrFraction",
"SoverBtotal",
"SeparationGain",
"SeparationGain"};
59 for (
Int_t i=0; i<nPlots; i++){
76 TString hname_roctest[2] ={
"ROCIntegral_test",
"ROCIntegralBoosted_test"};
77 TString hname_roctrain[2]={
"ROCIntegral_train",
"ROCIntegralBoosted_train"};
78 TString htitle[2] = {
"ROC integral of single classifier",
"ROC integral of boosted method"};
80 for (
Int_t i=0; i<2; i++){
83 TH1 *htest = (
TH1*) boostdir->
Get(hname_roctest[i]);
84 TH1 *htrain = (
TH1*) boostdir->
Get(hname_roctrain[i]);
88 Bool_t histFilled = (htest && htrain);
90 if (!htest) htest =
new TH1F(
"htest",
"",2,0,1);
91 if (!htrain) htrain =
new TH1F(
"htrain",
"",2,0,1);
109 htrain->
Draw(
"same");
117 legend->
AddEntry(htrain,
TString(
"training sample (orig. weights)"),
"L");
121 legend->
Draw(
"same");
127 t->
DrawTextNDC( .2, 0.6,
"Use MethodBoost option: \"Boost_DetailedMonitoring\" " );
128 t->
DrawTextNDC( .2, 0.51,
"to fill this histograms" );
135 TString fname = dataset+
Form(
"/plots/%s_ControlPlots", titName.
Data() );
virtual const char * GetName() const
Returns name of object.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual Double_t GetMaximum(Double_t maxval=FLT_MAX) const
Return maximum value smaller than maxval of bins in the range, unless the value has been overridden b...
void imgconv(TCanvas *c, const TString &fname)
Float_t GetLeftMargin() const
virtual void SetMaximum(Double_t maximum=-1111)
This class displays a legend box (TPaveText) containing several legend entries.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
image html pict1_TGaxis_012 png width
Define new text attributes for the label number "labNum".
Float_t GetBottomMargin() const
TFile * OpenFile(const TString &fin)
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual void SetMinimum(Double_t minimum=-1111)
void SetMargin(Float_t margin)
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
TKey * NextKey(TIter &keyIter, TString className)
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
virtual TText * DrawTextNDC(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates in NDC.
void BoostControlPlots(TString dataset, TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
Base class for several text objects.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
void Initialize(Bool_t useTMVAStyle=kTRUE)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
The most important graphics class in the ROOT system.
char * Form(const char *fmt,...)
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory")
Find a directory named "apath".
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
Describe directory structure in memory.
void boostcontrolplots(TString dataset, TDirectory *boostdir)
virtual TObject * ReadObj()
To read a TObject* from the file.
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
virtual void SetBorderSize(Int_t bordersize=4)
const char * Data() const
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)