55 if (ievt >= (
Int_t)fRegValues.size()) fRegValues.resize( ievt+1 );
56 fRegValues[ievt] =
value;
75 std::vector<Float_t> regVal = fRegValues.at(ievt);
90 std::vector<Float_t> regVal = fRegValues.at(ievt);
94 if (!truncate || val<=truncvalue ) h->
Fill( val, weight);
123 if (val < xmin ) xmin = val;
124 if (val > xmax ) xmax = val;
137 if (val < xmin ) xmin = val;
138 if (val > xmax ) xmax = val;
147 std::vector<Float_t> regVal = fRegValues.at(ievt);
150 if (diff < ymin ) ymin = diff;
151 if (diff > ymax ) ymax = diff;
166 TH2F*
h =
new TH2F( name, name, nxbins, xmin, xmax, nybins, ymin, ymax );
176 std::vector<Float_t> regVal = fRegValues.at(ievt);
181 h->
Fill( xVal, yVal );
196 TH2F*
h = DeviationAsAFunctionOf( ivar, itgt );
203 Log() <<
kINFO <<
"Create regression target histograms" <<
Endl;
214 Log() <<
kINFO <<
"Create regression average deviation" <<
Endl;
216 TH1F*
h = QuadraticDeviation(itgt);
224 TH1F* htrunc = QuadraticDeviation(itgt,
true, yq[0]);
225 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.
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 ...
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...
UInt_t GetNTargets() const
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)
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not...
UInt_t GetNVariables() const
Float_t GetValue(UInt_t ivar) const
return value of i'th variable
const char * Data() const
std::vector< std::vector< double > > Data
TFileCollection * GetDataSet(const char *ds, const char *server="")
GetDataSet wrapper.
const TString & GetTitle() const
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
virtual void SetName(const char *name)
Change the name of this histogram.
const Event * GetEvent() const
void SetCurrentType(Types::ETreeType type) const
Long64_t GetNEvents(Types::ETreeType type=Types::kMaxTreeType) const
VariableInfo & GetVariableInfo(Int_t i)
Float_t GetTarget(UInt_t itgt) const
void CreateDeviationHistograms(TString prefix)
virtual void SetTitle(const char *title)
Change (i.e.
Int_t Fill(Double_t)
Invalid Fill method.
virtual void SetTitle(const char *title="")
Change (i.e. set) the title of the TNamed.
TH1F * QuadraticDeviation(UInt_t tgtNum, Bool_t truncate=false, Double_t truncvalue=0.)