85 std::vector<Float_t> regVal =
fRegValues.at(ievt);
100 std::vector<Float_t> regVal =
fRegValues.at(ievt);
104 if (!truncate || val<=truncvalue ) h->
Fill( val, weight);
133 if (val < xmin ) xmin = val;
134 if (val > xmax ) xmax = val;
147 if (val < xmin ) xmin = val;
148 if (val > xmax ) xmax = val;
157 std::vector<Float_t> regVal =
fRegValues.at(ievt);
160 if (diff < ymin ) ymin = diff;
161 if (diff > ymax ) ymax = diff;
176 TH2F*
h =
new TH2F( name, name, nxbins, xmin, xmax, nybins, ymin, ymax );
186 std::vector<Float_t> regVal =
fRegValues.at(ievt);
191 h->
Fill( xVal, yVal );
213 Log() <<
kINFO <<
"Create regression target histograms" <<
Endl;
224 Log() <<
kINFO <<
"Create regression average deviation" <<
Endl;
235 TString name2(
Form(
"%s_Quadr_Dev_best90perc_target_%d_",prefix.
Data(),itgt) );
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
UInt_t GetNVariables() const
std::vector< std::vector< Float_t > > fRegValues
MsgLogger & Endl(MsgLogger &ml)
~ResultsRegression()
destructor
virtual void SetDirectory(TDirectory *dir)
By default when an histogram is created, it is added to the list of histogram objects in the current ...
THist< 1, float, THistStatContent, THistStatUncertainty > TH1F
virtual Int_t GetQuantiles(Int_t nprobSum, Double_t *q, const Double_t *probSum=0)
Compute Quantiles for this histogram Quantile x_q of a probability distribution Function F is defined...
const DataSetInfo * GetDataSetInfo() const
DataSet * GetDataSet() const
tomato 1-D histogram with a float per channel (see TH1 documentation)}
TH2F * DeviationAsAFunctionOf(UInt_t varNum, UInt_t tgtNum)
void SetValue(std::vector< Float_t > &value, Int_t ievt)
std::vector< std::vector< double > > Data
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not...
Float_t GetTarget(UInt_t itgt) const
UInt_t GetNTargets() const
tomato 2-D histogram with a float per channel (see TH1 documentation)}
VariableInfo & GetTargetInfo(Int_t i)
char * Form(const char *fmt,...)
ResultsRegression(const DataSetInfo *dsi, TString resultsName)
constructor
MsgLogger & Log() const
message logger
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
virtual void SetName(const char *name)
Change the name of this histogram.
void SetCurrentType(Types::ETreeType type) const
VariableInfo & GetVariableInfo(Int_t i)
void CreateDeviationHistograms(TString prefix)
Types::ETreeType GetTreeType() const
Long64_t GetNEvents(Types::ETreeType type=Types::kMaxTreeType) const
virtual void SetTitle(const char *title)
Change (i.e.
void Store(TObject *obj, const char *alias=0)
Int_t Fill(Double_t)
Invalid Fill method.
virtual void SetTitle(const char *title="")
Set the title of the TNamed.
THist< 2, float, THistStatContent, THistStatUncertainty > TH2F
const Event * GetEvent() const
TH1F * QuadraticDeviation(UInt_t tgtNum, Bool_t truncate=false, Double_t truncvalue=0.)
virtual const char * GetTitle() const
Returns title of object.
const char * Data() const