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);
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);
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);
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;
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
UInt_t GetNVariables() const
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 ...
TFileCollection * GetDataSet(const char *ds, const char *server)
GetDataSet wrapper.
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...
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)
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
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
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)
Long64_t GetNEvents(Types::ETreeType type=Types::kMaxTreeType) const
virtual void SetTitle(const char *title)
Change (i.e.
Class for type info of MVA input variable.
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