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

Definition at line 41 of file VarTransformHandler.h.

Public Member Functions

 VarTransformHandler (DataLoader *)
 constructor
 
 ~VarTransformHandler ()
 destructor
 
MsgLoggerLog () const
 message logger
 
TMVA::DataLoaderVarianceThreshold (Double_t threshold)
 Computes variance of all the variables and returns a new DataLoader with the selected variables whose variance is above a specific threshold.
 

Public Attributes

MsgLoggerfLogger
 

Private Member Functions

void CalcNorm ()
 Computes maximum, minimum, mean, RMS and variance for all variables and targets.
 
void CopyDataLoader (TMVA::DataLoader *des, TMVA::DataLoader *src)
 
void UpdateNorm (Int_t ivar, Double_t x)
 Updates maximum and minimum value of a variable or target.
 

Private Attributes

DataLoaderfDataLoader
 
DataSetInfofDataSetInfo
 
const std::vector< Event * > & fEvents
 

#include <TMVA/VarTransformHandler.h>

Constructor & Destructor Documentation

◆ VarTransformHandler()

TMVA::VarTransformHandler::VarTransformHandler ( DataLoader dl)

constructor

Definition at line 49 of file VarTransformHandler.cxx.

◆ ~VarTransformHandler()

TMVA::VarTransformHandler::~VarTransformHandler ( )

destructor

Definition at line 61 of file VarTransformHandler.cxx.

Member Function Documentation

◆ CalcNorm()

void TMVA::VarTransformHandler::CalcNorm ( )
private

Computes maximum, minimum, mean, RMS and variance for all variables and targets.

Definition at line 148 of file VarTransformHandler.cxx.

◆ CopyDataLoader()

void TMVA::VarTransformHandler::CopyDataLoader ( TMVA::DataLoader des,
TMVA::DataLoader src 
)
private

Definition at line 287 of file VarTransformHandler.cxx.

◆ Log()

MsgLogger & TMVA::VarTransformHandler::Log ( ) const
inline

message logger

Definition at line 49 of file VarTransformHandler.h.

◆ UpdateNorm()

void TMVA::VarTransformHandler::UpdateNorm ( Int_t  ivar,
Double_t  x 
)
private

Updates maximum and minimum value of a variable or target.

Definition at line 129 of file VarTransformHandler.cxx.

◆ VarianceThreshold()

TMVA::DataLoader * TMVA::VarTransformHandler::VarianceThreshold ( Double_t  threshold)

Computes variance of all the variables and returns a new DataLoader with the selected variables whose variance is above a specific threshold.

Threshold can be provided by user otherwise default value is 0 i.e. remove the variables which have same value in all the events.

Parameters
[in]thresholdvalue (Double)

Transformation Definition String Format: "VT(optional float value)"

Usage examples:

String Description
"VT" Select variables whose variance is above threshold value = 0 (Default)
"VT(1.5)" Select variables whose variance is above threshold value = 1.5

Definition at line 84 of file VarTransformHandler.cxx.

Member Data Documentation

◆ fDataLoader

DataLoader* TMVA::VarTransformHandler::fDataLoader
private

Definition at line 54 of file VarTransformHandler.h.

◆ fDataSetInfo

DataSetInfo& TMVA::VarTransformHandler::fDataSetInfo
private

Definition at line 53 of file VarTransformHandler.h.

◆ fEvents

const std::vector<Event*>& TMVA::VarTransformHandler::fEvents
private

Definition at line 55 of file VarTransformHandler.h.

◆ fLogger

MsgLogger* TMVA::VarTransformHandler::fLogger
mutable

Definition at line 48 of file VarTransformHandler.h.

Libraries for TMVA::VarTransformHandler:

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