Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Protected Attributes | List of all members
TMVA::HuberLossFunction Class Reference

Huber Loss Function.

Definition at line 165 of file LossFunction.h.

Public Member Functions

 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 (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...
 
- Public Member Functions inherited from TMVA::LossFunction
 LossFunction ()
 
virtual ~LossFunction ()
 

Protected Attributes

Double_t fQuantile
 
Double_t fSumOfWeights
 
Double_t fTransitionPoint
 
- Protected Attributes inherited from TMVA::LossFunction
UInt_t fNumPoolThreads = 1
 

Additional Inherited Members

- Protected Member Functions inherited from TMVA::LossFunction
UInt_t GetNumThreadsInPool ()
 

#include <TMVA/LossFunction.h>

Inheritance diagram for TMVA::HuberLossFunction:
[legend]

Constructor & Destructor Documentation

◆ HuberLossFunction() [1/2]

TMVA::HuberLossFunction::HuberLossFunction ( )

huber constructor

Definition at line 50 of file LossFunction.cxx.

◆ HuberLossFunction() [2/2]

TMVA::HuberLossFunction::HuberLossFunction ( Double_t  quantile)

Definition at line 57 of file LossFunction.cxx.

◆ ~HuberLossFunction()

TMVA::HuberLossFunction::~HuberLossFunction ( )

huber destructor

Definition at line 66 of file LossFunction.cxx.

Member Function Documentation

◆ CalculateLoss()

Double_t TMVA::HuberLossFunction::CalculateLoss ( LossFunctionEventInfo e)
virtual

huber, determine the loss for a single event

Implements TMVA::LossFunction.

Definition at line 190 of file LossFunction.cxx.

◆ CalculateMeanLoss()

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

huber, determine the mean loss for a collection of events

Implements TMVA::LossFunction.

Definition at line 231 of file LossFunction.cxx.

◆ CalculateNetLoss()

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

huber, determine the net loss for a collection of events

Implements TMVA::LossFunction.

Definition at line 213 of file LossFunction.cxx.

◆ CalculateQuantile()

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

huber, determine the quantile for a given input

Definition at line 126 of file LossFunction.cxx.

◆ CalculateSumOfWeights()

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

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

Definition at line 86 of file LossFunction.cxx.

◆ Id()

Int_t TMVA::HuberLossFunction::Id ( )
inlinevirtual

Implements TMVA::LossFunction.

Definition at line 179 of file LossFunction.h.

◆ Init()

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

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

Definition at line 74 of file LossFunction.cxx.

◆ Name()

TString TMVA::HuberLossFunction::Name ( )
inlinevirtual

Implements TMVA::LossFunction.

Definition at line 178 of file LossFunction.h.

◆ SetSumOfWeights()

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

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

Definition at line 183 of file LossFunction.cxx.

◆ SetTransitionPoint()

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

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

Definition at line 156 of file LossFunction.cxx.

Member Data Documentation

◆ fQuantile

Double_t TMVA::HuberLossFunction::fQuantile
protected

Definition at line 189 of file LossFunction.h.

◆ fSumOfWeights

Double_t TMVA::HuberLossFunction::fSumOfWeights
protected

Definition at line 191 of file LossFunction.h.

◆ fTransitionPoint

Double_t TMVA::HuberLossFunction::fTransitionPoint
protected

Definition at line 190 of file LossFunction.h.

Libraries for TMVA::HuberLossFunction:
[legend]

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