89 std::vector<Float_t> regVal =
fRegValues.at(ievt);
98 h->SetDirectory(
nullptr);
99 h->GetXaxis()->SetTitle(
"Quadratic Deviation");
100 h->GetYaxis()->SetTitle(
"Weighted Entries");
104 std::vector<Float_t> regVal =
fRegValues.at(ievt);
108 if (!truncate || val<=truncvalue )
h->Fill( val, weight);
161 std::vector<Float_t> regVal =
fRegValues.at(ievt);
172 xmin -= 1.01*epsilon;
173 xmax += 1.01*epsilon;
176 ymin -= 1.01*epsilon;
177 ymax += 1.01*epsilon;
181 h->SetDirectory(
nullptr);
186 h->GetYaxis()->SetTitle( yName );
190 std::vector<Float_t> regVal =
fRegValues.at(ievt);
195 h->Fill( xVal, yVal );
205 Log() << kINFO <<
"Create variable histograms" <<
Endl;
217 Log() << kINFO <<
"Create regression target histograms" <<
Endl;
228 Log() << kINFO <<
"Create regression average deviation" <<
Endl;
235 h->GetQuantiles(1,yq,xq);
244 Log() << kINFO <<
"Results created" <<
Endl;
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
bool Bool_t
Boolean (0=false, 1=true) (bool).
double Double_t
Double 8 bytes.
float Float_t
Float 4 bytes (float).
static char * Format(const char *format, va_list ap)
Format a string in a circular formatting buffer (using a printf style format descriptor).
1-D histogram with a float per channel (see TH1 documentation)
void SetTitle(const char *title) override
Change/set the title.
void SetName(const char *name) override
Change the name of this histogram.
2-D histogram with a float per channel (see TH1 documentation)
Class that contains all the data information.
UInt_t GetNVariables() const
UInt_t GetNTargets() const
VariableInfo & GetVariableInfo(Int_t i)
VariableInfo & GetTargetInfo(Int_t i)
Class that contains all the data information.
const Event * GetEvent() const
returns event without transformations
Long64_t GetNEvents(Types::ETreeType type=Types::kMaxTreeType) const
void SetCurrentType(Types::ETreeType type) const
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not.
Float_t GetTarget(UInt_t itgt) const
ostringstream derivative to redirect and format output
MsgLogger * fLogger
! message logger
void SetValue(std::vector< Float_t > &value, Int_t ievt)
std::vector< std::vector< Float_t > > fRegValues
mva values (Results)
TH2F * DeviationAsAFunctionOf(UInt_t varNum, UInt_t tgtNum)
TH1F * QuadraticDeviation(UInt_t tgtNum, Bool_t truncate=false, Double_t truncvalue=0.)
void CreateDeviationHistograms(TString prefix)
~ResultsRegression()
destructor
ResultsRegression(const DataSetInfo *dsi, TString resultsName)
constructor
void Store(TObject *obj, const char *alias=nullptr)
DataSet * GetDataSet() const
const DataSetInfo * GetDataSetInfo() const
Types::ETreeType GetTreeType() const
Results(const DataSetInfo *dsi, TString resultsName)
constructor
Class for type info of MVA input variable.
const char * GetTitle() const override
Returns title of object.
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.
MsgLogger & Endl(MsgLogger &ml)