Logo ROOT   master
Reference Guide
TMVA::HuberLossFunctionBDT Class Reference

Huber BDT Loss Function.

Definition at line 179 of file LossFunction.h.

Public Member Functions

 HuberLossFunctionBDT ()
 
 HuberLossFunctionBDT (Double_t quantile)
 
 ~HuberLossFunctionBDT ()
 
Double_t Fit (std::vector< LossFunctionEventInfo > &evs)
 huber BDT, determine the fit value for the terminal node based upon the events in the terminal node More...
 
void Init (std::map< const TMVA::Event *, LossFunctionEventInfo > &evinfomap, std::vector< double > &boostWeights)
 huber BDT, initialize the targets and prepare for the regression More...
 
void SetTargets (std::vector< const TMVA::Event *> &evs, std::map< const TMVA::Event *, LossFunctionEventInfo > &evinfomap)
 huber BDT, set the targets for a collection of events More...
 
Double_t Target (LossFunctionEventInfo &e)
 huber BDT, set the target for a single event More...
 
- Public Member Functions inherited from TMVA::LossFunctionBDT
 LossFunctionBDT ()
 
virtual ~LossFunctionBDT ()
 
- Public Member Functions inherited from TMVA::LossFunction
 LossFunction ()
 
virtual ~LossFunction ()
 
- Public Member Functions inherited from TMVA::HuberLossFunction
 HuberLossFunction ()
 huber constructor More...
 
 HuberLossFunction (Double_t quantile)
 
 ~HuberLossFunction ()
 huber destructor More...
 
Double_t CalculateLoss (LossFunctionEventInfo &e)
 huber, determine the loss for a single event More...
 
Double_t CalculateMeanLoss (std::vector< LossFunctionEventInfo > &evs)
 huber, determine the mean loss for a collection of events More...
 
Double_t CalculateNetLoss (std::vector< LossFunctionEventInfo > &evs)
 huber, determine the net loss for a collection of events More...
 
Double_t CalculateQuantile (std::vector< LossFunctionEventInfo > &evs, Double_t whichQuantile, Double_t sumOfWeights, bool abs)
 huber, determine the quantile for a given input More...
 
Double_t CalculateSumOfWeights (const std::vector< LossFunctionEventInfo > &evs)
 huber, calculate the sum of weights for the events in the vector More...
 
Int_t Id ()
 
void Init (std::vector< LossFunctionEventInfo > &evs)
 figure out the residual that determines the separation between the "core" and the "tails" of the residuals distribution More...
 
TString Name ()
 
void SetSumOfWeights (std::vector< LossFunctionEventInfo > &evs)
 huber, set the sum of weights given a collection of events More...
 
void SetTransitionPoint (std::vector< LossFunctionEventInfo > &evs)
 huber, determine the transition point using the values for fQuantile and fSumOfWeights which presumably have already been set More...
 

Additional Inherited Members

- Protected Attributes inherited from TMVA::HuberLossFunction
Double_t fQuantile
 
Double_t fSumOfWeights
 
Double_t fTransitionPoint
 

#include <TMVA/LossFunction.h>

Inheritance diagram for TMVA::HuberLossFunctionBDT:
[legend]

Constructor & Destructor Documentation

◆ HuberLossFunctionBDT() [1/2]

TMVA::HuberLossFunctionBDT::HuberLossFunctionBDT ( )

Definition at line 240 of file LossFunction.cxx.

◆ HuberLossFunctionBDT() [2/2]

TMVA::HuberLossFunctionBDT::HuberLossFunctionBDT ( Double_t  quantile)
inline

Definition at line 183 of file LossFunction.h.

◆ ~HuberLossFunctionBDT()

TMVA::HuberLossFunctionBDT::~HuberLossFunctionBDT ( )
inline

Definition at line 184 of file LossFunction.h.

Member Function Documentation

◆ Fit()

Double_t TMVA::HuberLossFunctionBDT::Fit ( std::vector< LossFunctionEventInfo > &  evs)
virtual

huber BDT, determine the fit value for the terminal node based upon the events in the terminal node

Implements TMVA::LossFunctionBDT.

Definition at line 334 of file LossFunction.cxx.

◆ Init()

void TMVA::HuberLossFunctionBDT::Init ( std::map< const TMVA::Event *, LossFunctionEventInfo > &  evinfomap,
std::vector< double > &  boostWeights 
)
virtual

huber BDT, initialize the targets and prepare for the regression

Implements TMVA::LossFunctionBDT.

Definition at line 246 of file LossFunction.cxx.

◆ SetTargets()

void TMVA::HuberLossFunctionBDT::SetTargets ( std::vector< const TMVA::Event *> &  evs,
std::map< const TMVA::Event *, LossFunctionEventInfo > &  evinfomap 
)
virtual

huber BDT, set the targets for a collection of events

Implements TMVA::LossFunctionBDT.

Definition at line 271 of file LossFunction.cxx.

◆ Target()

Double_t TMVA::HuberLossFunctionBDT::Target ( LossFunctionEventInfo e)
virtual

huber BDT, set the target for a single event

Implements TMVA::LossFunctionBDT.

Definition at line 323 of file LossFunction.cxx.

Libraries for TMVA::HuberLossFunctionBDT:
[legend]

The documentation for this class was generated from the following files: