53 fLogger( new
MsgLogger(
Form(
"ResultsRegression%s",resultsName.Data()) , kINFO) )
69 if (ievt >= (
Int_t)fRegValues.size()) fRegValues.resize( ievt+1 );
70 fRegValues[ievt] =
value;
89 std::vector<Float_t> regVal = fRegValues.at(ievt);
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);
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;
210 TH2F*
h = DeviationAsAFunctionOf( ivar, itgt );
217 Log() << kINFO <<
"Create regression target histograms" <<
Endl;
228 Log() << kINFO <<
"Create regression average deviation" <<
Endl;
230 TH1F*
h = QuadraticDeviation(itgt);
235 h->GetQuantiles(1,yq,xq);
238 TH1F* htrunc = QuadraticDeviation(itgt,
true, yq[0]);
239 TString name2(
Form(
"%s_Quadr_Dev_best90perc_target_%d_",prefix.
Data(),itgt) );
244 Log() << kINFO <<
"Results created" <<
Endl;
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
1-D histogram with a float per channel (see TH1 documentation)}
void SetTitle(const char *title) override
Change (i.e.
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
void SetValue(std::vector< Float_t > &value, Int_t ievt)
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
Class that is the base-class for a vector of result.
Class for type info of MVA input variable.
const char * GetTitle() const override
Returns title of object.
const char * Data() const
MsgLogger & Endl(MsgLogger &ml)
Short_t Abs(Short_t d)
Returns the absolute value of parameter Short_t d.