Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
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 CalculateLoss (LossFunctionEventInfo &e) override
 huber, determine the loss for a single event
Double_t CalculateMeanLoss (std::vector< LossFunctionEventInfo > &evs) override
 huber, determine the mean loss for a collection of events
Double_t CalculateNetLoss (std::vector< LossFunctionEventInfo > &evs) override
 huber, determine the net loss for a collection of events
Double_t CalculateQuantile (std::vector< LossFunctionEventInfo > &evs, Double_t whichQuantile, Double_t sumOfWeights, bool abs)
 huber, determine the quantile for a given input
Double_t CalculateSumOfWeights (const std::vector< LossFunctionEventInfo > &evs)
 huber, calculate the sum of weights for the events in the vector
Double_t Fit (std::vector< LossFunctionEventInfo > &evs) override
 huber BDT, determine the fit value for the terminal node based upon the events in the terminal node
Int_t Id () override
void Init (std::vector< LossFunctionEventInfo > &evs)
 figure out the residual that determines the separation between the "core" and the "tails" of the residuals distribution
void Init (std::map< const TMVA::Event *, LossFunctionEventInfo > &evinfomap, std::vector< double > &boostWeights) override
 huber BDT, initialize the targets and prepare for the regression
TString Name () override
void SetSumOfWeights (std::vector< LossFunctionEventInfo > &evs)
 huber, set the sum of weights given a collection of events
void SetTargets (std::vector< const TMVA::Event * > &evs, std::map< const TMVA::Event *, LossFunctionEventInfo > &evinfomap) override
 huber BDT, set the targets for a collection of events
void SetTransitionPoint (std::vector< LossFunctionEventInfo > &evs)
 huber, determine the transition point using the values for fQuantile and fSumOfWeights which presumably have already been set
Double_t Target (LossFunctionEventInfo &e) override
 huber BDT, set the target for a single event

Protected Attributes

Double_t fQuantile
Double_t fSumOfWeights
Double_t fTransitionPoint

#include <TMVA/LossFunction.h>

Inheritance diagram for TMVA::HuberLossFunctionBDT:
TMVA::LossFunctionBDT TMVA::HuberLossFunction TMVA::LossFunction TMVA::LossFunction

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

◆ CalculateLoss()

Double_t TMVA::HuberLossFunction::CalculateLoss ( LossFunctionEventInfo & e)
overridevirtualinherited

huber, determine the loss for a single event

Implements TMVA::LossFunction.

Definition at line 181 of file LossFunction.cxx.

◆ CalculateMeanLoss()

Double_t TMVA::HuberLossFunction::CalculateMeanLoss ( std::vector< LossFunctionEventInfo > & evs)
overridevirtualinherited

huber, determine the mean loss for a collection of events

Implements TMVA::LossFunction.

Definition at line 220 of file LossFunction.cxx.

◆ CalculateNetLoss()

Double_t TMVA::HuberLossFunction::CalculateNetLoss ( std::vector< LossFunctionEventInfo > & evs)
overridevirtualinherited

huber, determine the net loss for a collection of events

Implements TMVA::LossFunction.

Definition at line 202 of file LossFunction.cxx.

◆ CalculateQuantile()

Double_t TMVA::HuberLossFunction::CalculateQuantile ( std::vector< LossFunctionEventInfo > & evs,
Double_t whichQuantile,
Double_t sumOfWeights,
bool abs )
inherited

huber, determine the quantile for a given input

Definition at line 117 of file LossFunction.cxx.

◆ CalculateSumOfWeights()

Double_t TMVA::HuberLossFunction::CalculateSumOfWeights ( const std::vector< LossFunctionEventInfo > & evs)
inherited

huber, calculate the sum of weights for the events in the vector

Definition at line 92 of file LossFunction.cxx.

◆ Fit()

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

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.

◆ Id()

Int_t TMVA::HuberLossFunction::Id ( )
inlineoverridevirtualinherited

Implements TMVA::LossFunction.

Definition at line 158 of file LossFunction.h.

◆ Init() [1/2]

void TMVA::HuberLossFunction::Init ( std::vector< LossFunctionEventInfo > & evs)
inherited

figure out the residual that determines the separation between the "core" and the "tails" of the residuals distribution

Definition at line 80 of file LossFunction.cxx.

◆ Init() [2/2]

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

huber BDT, initialize the targets and prepare for the regression

Implements TMVA::LossFunctionBDT.

Definition at line 246 of file LossFunction.cxx.

◆ Name()

TString TMVA::HuberLossFunction::Name ( )
inlineoverridevirtualinherited

Implements TMVA::LossFunction.

Definition at line 157 of file LossFunction.h.

◆ SetSumOfWeights()

void TMVA::HuberLossFunction::SetSumOfWeights ( std::vector< LossFunctionEventInfo > & evs)
inherited

huber, set the sum of weights given a collection of events

Definition at line 174 of file LossFunction.cxx.

◆ SetTargets()

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

huber BDT, set the targets for a collection of events

Implements TMVA::LossFunctionBDT.

Definition at line 271 of file LossFunction.cxx.

◆ SetTransitionPoint()

void TMVA::HuberLossFunction::SetTransitionPoint ( std::vector< LossFunctionEventInfo > & evs)
inherited

huber, determine the transition point using the values for fQuantile and fSumOfWeights which presumably have already been set

Definition at line 147 of file LossFunction.cxx.

◆ Target()

Double_t TMVA::HuberLossFunctionBDT::Target ( LossFunctionEventInfo & e)
overridevirtual

huber BDT, set the target for a single event

Implements TMVA::LossFunctionBDT.

Definition at line 323 of file LossFunction.cxx.

Member Data Documentation

◆ fQuantile

Double_t TMVA::HuberLossFunction::fQuantile
protectedinherited

Definition at line 168 of file LossFunction.h.

◆ fSumOfWeights

Double_t TMVA::HuberLossFunction::fSumOfWeights
protectedinherited

Definition at line 170 of file LossFunction.h.

◆ fTransitionPoint

Double_t TMVA::HuberLossFunction::fTransitionPoint
protectedinherited

Definition at line 169 of file LossFunction.h.


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