31 #ifndef ROOT_TMVA_LossFunction 32 #define ROOT_TMVA_LossFunction 38 #ifndef ROOT_TMVA_Types 80 virtual Double_t CalculateNetLoss(std::vector<LossFunctionEventInfo>& evs) = 0;
81 virtual Double_t CalculateMeanLoss(std::vector<LossFunctionEventInfo>& evs) = 0;
84 virtual Int_t Id() = 0;
129 virtual void Init(std::map<const TMVA::Event*, LossFunctionEventInfo>& evinfomap, std::vector<double>& boostWeights) = 0;
130 virtual void SetTargets(std::vector<const TMVA::Event*>& evs, std::map< const TMVA::Event*, LossFunctionEventInfo >& evinfomap) = 0;
132 virtual Double_t Fit(std::vector<LossFunctionEventInfo>& evs) = 0;
148 Double_t CalculateNetLoss(std::vector<LossFunctionEventInfo>& evs);
149 Double_t CalculateMeanLoss(std::vector<LossFunctionEventInfo>& evs);
156 void Init(std::vector<LossFunctionEventInfo>& evs);
157 Double_t CalculateQuantile(std::vector<LossFunctionEventInfo>& evs,
Double_t whichQuantile,
Double_t sumOfWeights,
bool abs);
158 Double_t CalculateSumOfWeights(std::vector<LossFunctionEventInfo>& evs);
159 void SetTransitionPoint(std::vector<LossFunctionEventInfo>& evs);
160 void SetSumOfWeights(std::vector<LossFunctionEventInfo>& evs);
182 void Init(std::map<const TMVA::Event*, LossFunctionEventInfo>& evinfomap, std::vector<double>& boostWeights);
183 void SetTargets(std::vector<const TMVA::Event*>& evs, std::map< const TMVA::Event*, LossFunctionEventInfo >& evinfomap);
185 Double_t Fit(std::vector<LossFunctionEventInfo>& evs);
203 Double_t CalculateNetLoss(std::vector<LossFunctionEventInfo>& evs);
204 Double_t CalculateMeanLoss(std::vector<LossFunctionEventInfo>& evs);
224 void Init(std::map<const TMVA::Event*, LossFunctionEventInfo>& evinfomap, std::vector<double>& boostWeights);
225 void SetTargets(std::vector<const TMVA::Event*>& evs, std::map< const TMVA::Event*, LossFunctionEventInfo >& evinfomap);
227 Double_t Fit(std::vector<LossFunctionEventInfo>& evs);
242 Double_t CalculateNetLoss(std::vector<LossFunctionEventInfo>& evs);
243 Double_t CalculateMeanLoss(std::vector<LossFunctionEventInfo>& evs);
263 void Init(std::map<const TMVA::Event*, LossFunctionEventInfo>& evinfomap, std::vector<double>& boostWeights);
264 void SetTargets(std::vector<const TMVA::Event*>& evs, std::map< const TMVA::Event*, LossFunctionEventInfo >& evinfomap);
266 Double_t Fit(std::vector<LossFunctionEventInfo>& evs);
~LeastSquaresLossFunction()
~LeastSquaresLossFunctionBDT()
void Init(TClassEdit::TInterpreterLookupHelper *helper)
~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()