Logo ROOT   6.21/01
Reference Guide
TMVA::VarTransformHandler Class Reference

Definition at line 42 of file VarTransformHandler.h.

Public Member Functions

 VarTransformHandler (DataLoader *)
 constructor More...
 
 ~VarTransformHandler ()
 destructor More...
 
MsgLoggerLog () const
 message logger More...
 
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. More...
 

Public Attributes

MsgLoggerfLogger
 

Private Member Functions

void CalcNorm ()
 Computes maximum, minimum, mean, RMS and variance for all variables and targets. More...
 
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. More...
 

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 56 of file VarTransformHandler.cxx.

◆ ~VarTransformHandler()

TMVA::VarTransformHandler::~VarTransformHandler ( )

destructor

Definition at line 68 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 155 of file VarTransformHandler.cxx.

◆ CopyDataLoader()

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

Definition at line 294 of file VarTransformHandler.cxx.

◆ Log()

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

message logger

Definition at line 50 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 136 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 91 of file VarTransformHandler.cxx.

Member Data Documentation

◆ fDataLoader

DataLoader* TMVA::VarTransformHandler::fDataLoader
private

Definition at line 55 of file VarTransformHandler.h.

◆ fDataSetInfo

DataSetInfo& TMVA::VarTransformHandler::fDataSetInfo
private

Definition at line 54 of file VarTransformHandler.h.

◆ fEvents

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

Definition at line 56 of file VarTransformHandler.h.

◆ fLogger

MsgLogger* TMVA::VarTransformHandler::fLogger
mutable

Definition at line 49 of file VarTransformHandler.h.

Libraries for TMVA::VarTransformHandler:
[legend]

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