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++){
63 h->SetMaximum(
h->GetMaximum()*1.3);
65 h->SetMarkerColor(color);
66 h->SetMarkerSize( 0.7 );
67 h->SetMarkerStyle( 24 );
69 h->SetLineColor(color);
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() );
include TDocParser_001 C image html pict1_TDocParser_001 png width
char * Form(const char *fmt,...)
virtual void SetFillStyle(Style_t fstyle)
Set the fill area style.
virtual void SetLineWidth(Width_t lwidth)
Set the line width.
virtual void SetLineColor(Color_t lcolor)
Set the line color.
virtual void SetMarkerColor(Color_t mcolor=1)
Set the marker color.
virtual void SetMarkerStyle(Style_t mstyle=1)
Set the marker style.
virtual void SetMarkerSize(Size_t msize=1)
Set the marker size.
Float_t GetLeftMargin() const
Float_t GetBottomMargin() const
virtual void SetTextColor(Color_t tcolor=1)
Set the text color.
virtual void SetTextSize(Float_t tsize=1)
Set the text size.
Describe directory structure in memory.
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
1-D histogram with a float per channel (see TH1 documentation)}
TH1 is the base class of all histogram classes in ROOT.
virtual void SetTitle(const char *title)
See GetStatOverflows for more information.
virtual void SetMaximum(Double_t maximum=-1111)
virtual void SetMinimum(Double_t minimum=-1111)
virtual void Draw(Option_t *option="")
Draw this histogram with options.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual TObject * ReadObj()
To read a TObject* from the file.
This class displays a legend box (TPaveText) containing several legend entries.
TLegendEntry * AddEntry(const TObject *obj, const char *label="", Option_t *option="lpf")
Add a new entry to this legend.
virtual void Draw(Option_t *option="")
Draw this legend with its current attributes.
void SetMargin(Float_t margin)
virtual const char * GetName() const
Returns name of object.
The most important graphics class in the ROOT system.
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
virtual void SetBorderSize(Int_t bordersize=4)
const char * Data() const
Base class for several text objects.
virtual TText * DrawTextNDC(Double_t x, Double_t y, const char *text)
Draw this text with new coordinates in NDC.
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)
void Initialize(Bool_t useTMVAStyle=kTRUE)
TKey * NextKey(TIter &keyIter, TString className)
TFile * OpenFile(const TString &fin)
void imgconv(TCanvas *c, const TString &fname)
void boostcontrolplots(TString dataset, TDirectory *boostdir)
void BoostControlPlots(TString dataset, TString fin="TMVA.root", Bool_t useTMVAStyle=kTRUE)