Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::LeastSquaresLossFunctionBDT Class Referenceabstract

Least Squares BDT Loss Function.

Definition at line 222 of file LossFunction.h.

Public Member Functions

 LeastSquaresLossFunctionBDT ()
 
 ~LeastSquaresLossFunctionBDT ()
 
Double_t CalculateLoss (LossFunctionEventInfo &e) override
 least squares , determine the loss for a single event
 
virtual Double_t CalculateLoss (LossFunctionEventInfo &e)=0
 
Double_t CalculateMeanLoss (std::vector< LossFunctionEventInfo > &evs) override
 least squares , determine the mean loss for a collection of events
 
virtual Double_t CalculateMeanLoss (std::vector< LossFunctionEventInfo > &evs)=0
 
Double_t CalculateNetLoss (std::vector< LossFunctionEventInfo > &evs) override
 least squares , determine the net loss for a collection of events
 
virtual Double_t CalculateNetLoss (std::vector< LossFunctionEventInfo > &evs)=0
 
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
 
virtual Int_t Id ()=0
 
void Init (std::map< const TMVA::Event *, LossFunctionEventInfo > &evinfomap, std::vector< double > &boostWeights) override
 least squares BDT, initialize the targets and prepare for the regression
 
TString Name () override
 
virtual TString Name ()=0
 
void SetTargets (std::vector< const TMVA::Event * > &evs, std::map< const TMVA::Event *, LossFunctionEventInfo > &evinfomap) override
 least squares BDT, set the targets for a collection of events
 
Double_t Target (LossFunctionEventInfo &e) override
 least squares BDT, set the target for a single event
 

#include <TMVA/LossFunction.h>

Inheritance diagram for TMVA::LeastSquaresLossFunctionBDT:
TMVA::LossFunctionBDT TMVA::LeastSquaresLossFunction TMVA::LossFunction TMVA::LossFunction

Constructor & Destructor Documentation

◆ LeastSquaresLossFunctionBDT()

TMVA::LeastSquaresLossFunctionBDT::LeastSquaresLossFunctionBDT ( )
inline

Definition at line 225 of file LossFunction.h.

◆ ~LeastSquaresLossFunctionBDT()

TMVA::LeastSquaresLossFunctionBDT::~LeastSquaresLossFunctionBDT ( )
inline

Definition at line 226 of file LossFunction.h.

Member Function Documentation

◆ CalculateLoss() [1/2]

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

least squares , determine the loss for a single event

Implements TMVA::LossFunction.

Definition at line 368 of file LossFunction.cxx.

◆ CalculateLoss() [2/2]

virtual Double_t TMVA::LossFunction::CalculateLoss ( LossFunctionEventInfo & e)
pure virtualinherited

◆ CalculateMeanLoss() [1/2]

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

least squares , determine the mean loss for a collection of events

Implements TMVA::LossFunction.

Definition at line 390 of file LossFunction.cxx.

◆ CalculateMeanLoss() [2/2]

virtual Double_t TMVA::LossFunction::CalculateMeanLoss ( std::vector< LossFunctionEventInfo > & evs)
pure virtualinherited

◆ CalculateNetLoss() [1/2]

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

least squares , determine the net loss for a collection of events

Implements TMVA::LossFunction.

Definition at line 378 of file LossFunction.cxx.

◆ CalculateNetLoss() [2/2]

virtual Double_t TMVA::LossFunction::CalculateNetLoss ( std::vector< LossFunctionEventInfo > & evs)
pure virtualinherited

◆ Fit()

Double_t TMVA::LeastSquaresLossFunctionBDT::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 470 of file LossFunction.cxx.

◆ Id() [1/2]

Int_t TMVA::LeastSquaresLossFunction::Id ( )
inlineoverridevirtualinherited

Implements TMVA::LossFunction.

Definition at line 213 of file LossFunction.h.

◆ Id() [2/2]

virtual Int_t TMVA::LossFunction::Id ( )
pure virtualinherited

◆ Init()

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

least squares BDT, initialize the targets and prepare for the regression

Implements TMVA::LossFunctionBDT.

Definition at line 413 of file LossFunction.cxx.

◆ Name() [1/2]

TString TMVA::LeastSquaresLossFunction::Name ( )
inlineoverridevirtualinherited

Implements TMVA::LossFunction.

Definition at line 212 of file LossFunction.h.

◆ Name() [2/2]

virtual TString TMVA::LossFunction::Name ( )
pure virtualinherited

◆ SetTargets()

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

least squares BDT, set the targets for a collection of events

Implements TMVA::LossFunctionBDT.

Definition at line 437 of file LossFunction.cxx.

◆ Target()

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

least squares BDT, set the target for a single event

Implements TMVA::LossFunctionBDT.

Definition at line 459 of file LossFunction.cxx.


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