31 #ifndef ROOT_TMVA_LossFunction 32 #define ROOT_TMVA_LossFunction 82 virtual Double_t CalculateNetLoss(std::vector<LossFunctionEventInfo>& evs) = 0;
83 virtual Double_t CalculateMeanLoss(std::vector<LossFunctionEventInfo>& evs) = 0;
86 virtual Int_t Id() = 0;
131 virtual void Init(std::map<const TMVA::Event*, LossFunctionEventInfo>& evinfomap, std::vector<double>& boostWeights) = 0;
132 virtual void SetTargets(std::vector<const TMVA::Event*>& evs, std::map< const TMVA::Event*, LossFunctionEventInfo >& evinfomap) = 0;
134 virtual Double_t Fit(std::vector<LossFunctionEventInfo>& evs) = 0;
150 Double_t CalculateNetLoss(std::vector<LossFunctionEventInfo>& evs);
151 Double_t CalculateMeanLoss(std::vector<LossFunctionEventInfo>& evs);
158 void Init(std::vector<LossFunctionEventInfo>& evs);
159 Double_t CalculateQuantile(std::vector<LossFunctionEventInfo>& evs,
Double_t whichQuantile,
Double_t sumOfWeights,
bool abs);
160 Double_t CalculateSumOfWeights(std::vector<LossFunctionEventInfo>& evs);
161 void SetTransitionPoint(std::vector<LossFunctionEventInfo>& evs);
162 void SetSumOfWeights(std::vector<LossFunctionEventInfo>& evs);
184 void Init(std::map<const TMVA::Event*, LossFunctionEventInfo>& evinfomap, std::vector<double>& boostWeights);
185 void SetTargets(std::vector<const TMVA::Event*>& evs, std::map< const TMVA::Event*, LossFunctionEventInfo >& evinfomap);
187 Double_t Fit(std::vector<LossFunctionEventInfo>& evs);
205 Double_t CalculateNetLoss(std::vector<LossFunctionEventInfo>& evs);
206 Double_t CalculateMeanLoss(std::vector<LossFunctionEventInfo>& evs);
226 void Init(std::map<const TMVA::Event*, LossFunctionEventInfo>& evinfomap, std::vector<double>& boostWeights);
227 void SetTargets(std::vector<const TMVA::Event*>& evs, std::map< const TMVA::Event*, LossFunctionEventInfo >& evinfomap);
229 Double_t Fit(std::vector<LossFunctionEventInfo>& evs);
244 Double_t CalculateNetLoss(std::vector<LossFunctionEventInfo>& evs);
245 Double_t CalculateMeanLoss(std::vector<LossFunctionEventInfo>& evs);
265 void Init(std::map<const TMVA::Event*, LossFunctionEventInfo>& evinfomap, std::vector<double>& boostWeights);
266 void SetTargets(std::vector<const TMVA::Event*>& evs, std::map< const TMVA::Event*, LossFunctionEventInfo >& evinfomap);
268 Double_t Fit(std::vector<LossFunctionEventInfo>& evs);
~LeastSquaresLossFunction()
Absolute Deviation BDT Loss Function.
Least Squares Loss Function.
~LeastSquaresLossFunctionBDT()
Absolute Deviation Loss Function.
void Init(TClassEdit::TInterpreterLookupHelper *helper)
Least Squares BDT Loss Function.
~AbsoluteDeviationLossFunction()
LeastSquaresLossFunction()
~AbsoluteDeviationLossFunctionBDT()
AbsoluteDeviationLossFunction()
HuberLossFunctionBDT(Double_t quantile)
TFitResultPtr Fit(FitObject *h1, TF1 *f1, Foption_t &option, const ROOT::Math::MinimizerOptions &moption, const char *goption, ROOT::Fit::DataRange &range)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
LossFunctionEventInfo(Double_t trueValue_, Double_t predictedValue_, Double_t weight_)
Double_t fTransitionPoint
Abstract ClassifierFactory template that handles arbitrary types.
LeastSquaresLossFunctionBDT()
AbsoluteDeviationLossFunctionBDT()
virtual ~LossFunctionBDT()