89 std::vector<Float_t> regVal =
fRegValues.at(ievt);
104 std::vector<Float_t> regVal =
fRegValues.at(ievt);
108 if (!truncate || val<=truncvalue ) h->
Fill( val, weight);
137 if (val < xmin ) xmin = val;
138 if (val > xmax ) xmax = val;
151 if (val < xmin ) xmin = val;
152 if (val > xmax ) xmax = val;
161 std::vector<Float_t> regVal =
fRegValues.at(ievt);
164 if (diff < ymin ) ymin = diff;
165 if (diff > ymax ) ymax = diff;
180 TH2F*
h =
new TH2F( name, name, nxbins, xmin, xmax, nybins, ymin, ymax );
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;
239 TString name2(
Form(
"%s_Quadr_Dev_best90perc_target_%d_",prefix.
Data(),itgt) );
244 Log() << kINFO <<
"Results created" <<
Endl;
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
Class that contains all the data information.
Double_t GetWeight() const
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not...
Class that contains all the data information.
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)
ostringstream derivative to redirect and format output
Class that is the base-class for a vector of result.
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)
Class for type info of MVA input variable.
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