![]() |
ROOT
6.06/08
Reference Guide
|
Public Member Functions | |
| Event () | |
| copy constructor More... | |
| Event (const Event &) | |
| copy constructor More... | |
| Event (const std::vector< Float_t > &values, const std::vector< Float_t > &targetValues, const std::vector< Float_t > &spectatorValues, UInt_t theClass=0, Double_t weight=1.0, Double_t boostweight=1.0) | |
| constructor More... | |
| Event (const std::vector< Float_t > &values, const std::vector< Float_t > &targetValues, UInt_t theClass=0, Double_t weight=1.0, Double_t boostweight=1.0) | |
| constructor More... | |
| Event (const std::vector< Float_t > &, UInt_t theClass, Double_t weight=1.0, Double_t boostweight=1.0) | |
| constructor More... | |
| Event (const std::vector< Float_t *> *&, UInt_t nvar) | |
| constructor for single events More... | |
| ~Event () | |
| Event destructor. More... | |
| Bool_t | IsDynamic () const |
| Double_t | GetWeight () const |
| return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not. More... | |
| Double_t | GetOriginalWeight () const |
| Double_t | GetBoostWeight () const |
| UInt_t | GetClass () const |
| UInt_t | GetNVariables () const |
| accessor to the number of variables More... | |
| UInt_t | GetNTargets () const |
| accessor to the number of targets More... | |
| UInt_t | GetNSpectators () const |
| accessor to the number of spectators More... | |
| Float_t | GetValue (UInt_t ivar) const |
| return value of i'th variable More... | |
| std::vector< Float_t > & | GetValues () |
| const std::vector< Float_t > & | GetValues () const |
| return value vector More... | |
| Float_t | GetTarget (UInt_t itgt) const |
| std::vector< Float_t > & | GetTargets () |
| const std::vector< Float_t > & | GetTargets () const |
| Float_t | GetSpectator (UInt_t ivar) const |
| return spectator content More... | |
| std::vector< Float_t > & | GetSpectators () |
| const std::vector< Float_t > & | GetSpectators () const |
| void | SetWeight (Double_t w) |
| void | SetBoostWeight (Double_t w) const |
| void | ScaleBoostWeight (Double_t s) const |
| void | SetClass (UInt_t t) |
| void | SetVal (UInt_t ivar, Float_t val) |
| set variable ivar to val More... | |
| void | SetTarget (UInt_t itgt, Float_t value) |
| set the target value (dimension itgt) to value More... | |
| void | SetSpectator (UInt_t ivar, Float_t value) |
| set spectator value (dimension ivar) to value More... | |
| void | SetVariableArrangement (std::vector< UInt_t > *const m) const |
| set the variable arrangement More... | |
| void | SetDoNotBoost () const |
| void | CopyVarValues (const Event &other) |
| copies only the variable values More... | |
| void | Print (std::ostream &o) const |
| print method More... | |
Static Public Member Functions | |
| static void | ClearDynamicVariables () |
| static void | SetIsTraining (Bool_t) |
| when this static function is called, it sets the flag whether events with negative event weight should be ignored in the training, or not. More... | |
| static void | SetIgnoreNegWeightsInTraining (Bool_t) |
| when this static function is called, it sets the flag whether events with negative event weight should be ignored in the training, or not. More... | |
Private Attributes | |
| std::vector< Float_t > | fValues |
| std::vector< Float_t > | fValuesRearranged |
| std::vector< Float_t * > * | fValuesDynamic |
| std::vector< Float_t > | fTargets |
| std::vector< Float_t > | fSpectators |
| std::vector< UInt_t > * | fVariableArrangement |
| UInt_t | fClass |
| Double_t | fWeight |
| Double_t | fBoostWeight |
| Bool_t | fDynamic |
| Bool_t | fDoNotBoost |
Static Private Attributes | |
| static Bool_t | fgIsTraining = kFALSE |
| static Bool_t | fgIgnoreNegWeightsInTraining = kFALSE |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Event &event) |
#include <TMVA/Event.h>
Collaboration diagram for TMVA::Event:| TMVA::Event::Event | ( | const Event & | event | ) |
|
inlinestatic |
copies only the variable values
Definition at line 198 of file Event.cxx.
Referenced by ClearDynamicVariables().
|
inline |
Definition at line 86 of file Event.h.
Referenced by TMVA::MethodBoost::AdaBoost(), TMVA::DecisionTree::BuildTree(), TMVA::Tools::CalcCovarianceMatrices(), TMVA::DataSetFactory::CalcCovarianceMatrix(), TMVA::VariableNormalizeTransform::CalcNormalizationParams(), TMVA::TransformationHandler::CalcStats(), TMVA::MethodMLP::CalculateEstimator(), TMVA::VariablePCATransform::CalculatePrincipalComponents(), TMVA::DecisionTree::CheckEventWithPrunedTree(), TMVA::MethodHMatrix::ComputeCovariance(), TMVA::ResultsMulticlass::CreateMulticlassHistos(), TMVA::MethodLikelihood::CreateRanking(), TMVA::ResultsMulticlass::EstimatorFunction(), TMVA::MethodFDA::EstimatorFunction(), TMVA::DecisionTree::FillEvent(), TMVA::PDEFoamDiscriminant::FillFoamCells(), TMVA::MethodMLP::GetCEErr(), TMVA::VariableGaussTransform::GetCumulativeDist(), TMVA::DecisionTree::GetFisherCoefficients(), TMVA::MethodMLP::GetMSEErr(), TMVA::DataSetInfo::GetTargetsForMulticlass(), TMVA::DataSet::GetTree(), TMVA::MethodPyRandomForest::Init(), TMVA::MethodPyGTB::Init(), TMVA::MethodPyAdaBoost::Init(), TMVA::DataSetInfo::IsSignal(), TMVA::RMethodBase::LoadData(), TMVA::TransformationHandler::PlotVariables(), TMVA::RuleEnsemble::RuleResponseStats(), TMVA::MethodMLP::SimulateEvent(), TMVA::CCTreeWrapper::TestTreeQuality(), and TMVA::MethodLikelihood::Train().
| UInt_t TMVA::Event::GetNSpectators | ( | ) | const |
accessor to the number of spectators
Definition at line 322 of file Event.cxx.
Referenced by GetClass(), TMVA::DataSet::GetTree(), and GetValues().
| UInt_t TMVA::Event::GetNTargets | ( | ) | const |
accessor to the number of targets
Definition at line 314 of file Event.cxx.
Referenced by TMVA::DecisionTree::CheckEventWithPrunedTree(), GetClass(), TMVA::MethodPDERS::GetRegressionValues(), and TMVA::DataSet::GetTree().
| UInt_t TMVA::Event::GetNVariables | ( | ) | const |
accessor to the number of variables
Definition at line 303 of file Event.cxx.
Referenced by CopyVarValues(), TMVA::Reader::EvaluateMulticlass(), TMVA::Reader::EvaluateMVA(), TMVA::Reader::EvaluateRegression(), GetClass(), TMVA::MethodPyAdaBoost::GetMvaValue(), TMVA::MethodPyGTB::GetMvaValue(), TMVA::MethodPyRandomForest::GetMvaValue(), TMVA::Reader::GetProba(), TMVA::Reader::GetRarity(), GetSpectator(), TMVA::DataSet::GetTree(), TMVA::BinarySearchTree::Insert(), TMVA::VariableDecorrTransform::Transform(), and TMVA::VariableGaussTransform::Transform().
|
inline |
Definition at line 84 of file Event.h.
Referenced by TMVA::MethodBoost::AdaBoost(), TMVA::DecisionTree::BuildTree(), TMVA::MethodBoost::GetBoostROCIntegral(), TMVA::DataSetFactory::RenormEvents(), TMVA::MethodPDEFoam::TrainMonoTargetRegression(), TMVA::MethodPDEFoam::TrainMultiClassification(), TMVA::MethodPDEFoam::TrainMultiTargetRegression(), TMVA::MethodPDEFoam::TrainSeparatedClassification(), and TMVA::MethodPDEFoam::TrainUnifiedClassification().
return spectator content
Definition at line 256 of file Event.cxx.
Referenced by TMVA::DataSetFactory::CalcMinMax(), TMVA::VariableTransformBase::GetInput(), GetTargets(), TMVA::DataSet::GetTree(), TMVA::RMethodBase::LoadData(), and TMVA::MethodCategory::PassesCut().
|
inline |
Definition at line 101 of file Event.h.
Referenced by TMVA::DecisionTree::BuildTree(), TMVA::DataSetFactory::CalcMinMax(), TMVA::VariableTransformBase::CalcNorm(), TMVA::TransformationHandler::CalcStats(), TMVA::MethodMLP::CalculateEstimator(), TMVA::MethodPDEFoam::CalcXminXmax(), TMVA::DecisionTree::CheckEventWithPrunedTree(), TMVA::ResultsRegression::DeviationAsAFunctionOf(), TMVA::MethodFDA::EstimatorFunction(), TMVA::MethodMLP::GetCEErr(), TMVA::VariableTransformBase::GetInput(), TMVA::MethodMLP::GetMSEErr(), TMVA::MethodLD::GetRegressionValues(), TMVA::MethodSVM::GetRegressionValues(), TMVA::MethodFDA::GetRegressionValues(), TMVA::MethodPDERS::GetRegressionValues(), TMVA::MethodBDT::GetRegressionValues(), TMVA::MethodANNBase::GetRegressionValues(), TMVA::MethodPDEFoam::GetRegressionValues(), TMVA::MethodLD::GetSumVal(), TMVA::DataSet::GetTree(), TMVA::TransformationHandler::PlotVariables(), TMVA::ResultsRegression::QuadraticDeviation(), TMVA::MethodMLP::SimulateEvent(), and TMVA::MethodBase::TestRegression().
|
inline |
Definition at line 102 of file Event.h.
Referenced by TMVA::PDEFoamTarget::FillFoamCells(), TMVA::MethodKNN::Train(), TMVA::MethodPDEFoam::TrainMultiTargetRegression(), and TMVA::MethodMLP::TrainOneEvent().
|
inline |
return value of i'th variable
Definition at line 231 of file Event.cxx.
Referenced by TMVA::MethodBDT::ApplyPreselectionCuts(), TMVA::DecisionTree::BuildTree(), TMVA::Tools::CalcCovarianceMatrices(), TMVA::DataSetFactory::CalcCovarianceMatrix(), TMVA::DataSetFactory::CalcMinMax(), TMVA::VariableTransformBase::CalcNorm(), TMVA::TransformationHandler::CalcStats(), TMVA::MethodPDEFoam::CalcXminXmax(), TMVA::MethodHMatrix::ComputeCovariance(), TMVA::MethodCuts::CreateVariablePDFs(), TMVA::MethodPDERS::CRScalc(), TMVA::ResultsRegression::DeviationAsAFunctionOf(), TMVA::BinarySearchTreeNode::EqualsMe(), TMVA::MethodCuts::EstimatorFunction(), TMVA::RuleCut::EvalEvent(), TMVA::RuleEnsemble::EvalLinEventRaw(), TMVA::Factory::EvaluateAllMethods(), TMVA::Reader::EvaluateMulticlass(), TMVA::Reader::EvaluateMVA(), TMVA::Reader::EvaluateRegression(), TMVA::MethodANNBase::ForceNetworkInputs(), TMVA::MethodHMatrix::GetChi2(), GetClass(), TMVA::MethodFisher::GetCov_WithinClass(), TMVA::DecisionTree::GetFisherCoefficients(), TMVA::VariableTransformBase::GetInput(), TMVA::MethodFisher::GetMean(), TMVA::MethodANNBase::GetMulticlassValues(), TMVA::MethodPyGTB::GetMvaValue(), TMVA::MethodPyAdaBoost::GetMvaValue(), TMVA::MethodPyRandomForest::GetMvaValue(), TMVA::MethodKNN::GetMvaValue(), TMVA::MethodTMlpANN::GetMvaValue(), TMVA::MethodFisher::GetMvaValue(), TMVA::MethodLikelihood::GetMvaValue(), TMVA::MethodCuts::GetMvaValue(), TMVA::MethodCFMlpANN::GetMvaValue(), TMVA::MethodANNBase::GetMvaValue(), TMVA::MethodPDERS::GetNormalizedDistance(), TMVA::Reader::GetProba(), TMVA::Reader::GetRarity(), TMVA::MethodKNN::GetRegressionValues(), TMVA::MethodANNBase::GetRegressionValues(), TMVA::MethodPDERS::GetSample(), TMVA::MethodLD::GetSum(), TMVA::MethodLD::GetSumVal(), TMVA::DataSet::GetTree(), TMVA::BDTEventWrapper::GetVal(), TMVA::BinarySearchTreeNode::GoesLeft(), TMVA::BinarySearchTreeNode::GoesRight(), TMVA::DecisionTreeNode::GoesRight(), TMVA::MethodPyAdaBoost::Init(), TMVA::MethodPyRandomForest::Init(), TMVA::MethodPyGTB::Init(), TMVA::MethodFDA::InterpretFormula(), TMVA::RMethodBase::LoadData(), TMVA::MethodBoost::MonitorBoost(), TMVA::TransformationHandler::PlotVariables(), TMVA::MethodCFMlpANN::ProcessOptions(), TMVA::MethodPDERS::RRScalc(), TMVA::MethodBase::Statistics(), TMVA::MethodTMlpANN::Train(), TMVA::MethodKNN::Train(), TMVA::MethodLikelihood::Train(), TMVA::MethodCuts::Train(), TMVA::RuleFitAPI::WriteTest(), and TMVA::RuleFitAPI::WriteTrain().
|
inline |
Definition at line 93 of file Event.h.
Referenced by TMVA::MethodPDEFoam::CalculateMVAError(), TMVA::PDEFoamEvent::FillFoamCells(), TMVA::PDEFoamDiscriminant::FillFoamCells(), TMVA::PDEFoamTarget::FillFoamCells(), TMVA::PDEFoam::FillFoamCells(), TMVA::MethodPDEFoam::GetMulticlassValues(), TMVA::MethodRSNNS::GetMvaValue(), TMVA::MethodRXGB::GetMvaValue(), TMVA::MethodC50::GetMvaValue(), TMVA::MethodRSVM::GetMvaValue(), TMVA::MethodLD::GetMvaValue(), TMVA::MethodPDEFoam::GetMvaValue(), TMVA::MethodLD::GetRegressionValues(), TMVA::MethodPDEFoam::GetRegressionValues(), GetValues(), and TMVA::MethodPDEFoam::TrainMultiTargetRegression().
| const std::vector< Float_t > & TMVA::Event::GetValues | ( | ) | const |
| Double_t TMVA::Event::GetWeight | ( | ) | const |
return the event weight - depending on whether the flag IgnoreNegWeightsInTraining is or not.
If it is set AND it is used for training, then negetive event weights are set to zero ! NOTE! For events used in Testing, the ORIGINAL possibly negative event weight is used no matter what
Definition at line 376 of file Event.cxx.
Referenced by TMVA::MethodBoost::AdaBoost(), TMVA::DataSet::AddEvent(), TMVA::DecisionTree::BuildTree(), TMVA::Tools::CalcCovarianceMatrices(), TMVA::DataSetFactory::CalcCovarianceMatrix(), TMVA::VariableTransformBase::CalcNorm(), TMVA::TransformationHandler::CalcStats(), TMVA::MethodMLP::CalculateEstimator(), TMVA::DecisionTree::CheckEventWithPrunedTree(), TMVA::MethodHMatrix::ComputeCovariance(), TMVA::MethodMLP::ComputeDEDw(), TMVA::ResultsMulticlass::CreateMulticlassHistos(), TMVA::MethodBase::CreateMVAPdfs(), TMVA::MethodLikelihood::CreateRanking(), TMVA::ResultsMulticlass::EstimatorFunction(), TMVA::MethodFDA::EstimatorFunction(), TMVA::DecisionTree::FillEvent(), TMVA::MethodBoost::FindMVACut(), TMVA::MethodBoost::GetBoostROCIntegral(), TMVA::MethodFisher::GetCov_WithinClass(), TMVA::VariableGaussTransform::GetCumulativeDist(), TMVA::MethodBase::GetEfficiency(), TMVA::MethodMLP::GetError(), TMVA::DecisionTree::GetFisherCoefficients(), TMVA::MethodFisher::GetMean(), TMVA::MethodKNN::GetMvaValue(), TMVA::MethodKNN::GetRegressionValues(), TMVA::MethodLD::GetSum(), TMVA::MethodLD::GetSumVal(), TMVA::MethodBase::GetTrainingEfficiency(), TMVA::DataSet::GetTree(), TMVA::MethodPyGTB::Init(), TMVA::MethodPyRandomForest::Init(), TMVA::MethodPyAdaBoost::Init(), IsDynamic(), TMVA::RMethodBase::LoadData(), TMVA::RuleFitParams::LossFunction(), TMVA::MethodBoost::MonitorBoost(), TMVA::TransformationHandler::PlotVariables(), TMVA::ResultsRegression::QuadraticDeviation(), TMVA::MethodMLP::SimulateEvent(), TMVA::MethodBase::Statistics(), TMVA::MethodBoost::TestClassification(), TMVA::MethodBase::TestClassification(), TMVA::MethodBase::TestRegression(), TMVA::MethodDT::TestTreeQuality(), TMVA::CCTreeWrapper::TestTreeQuality(), TMVA::MethodTMlpANN::Train(), TMVA::MethodKNN::Train(), TMVA::MethodSVM::Train(), TMVA::MethodFDA::Train(), TMVA::MethodLikelihood::Train(), TMVA::MethodPDEFoam::TrainMonoTargetRegression(), TMVA::MethodPDEFoam::TrainMultiClassification(), TMVA::MethodPDEFoam::TrainMultiTargetRegression(), TMVA::MethodMLP::TrainOneEpoch(), TMVA::MethodMLP::TrainOneEvent(), TMVA::MethodPDEFoam::TrainSeparatedClassification(), TMVA::MethodPDEFoam::TrainUnifiedClassification(), and TMVA::RuleFitAPI::WriteTrain().
| void TMVA::Event::Print | ( | std::ostream & | o | ) | const |
print method
Definition at line 346 of file Event.cxx.
Referenced by TMVA::VariablePCATransform::CalculatePrincipalComponents(), ClearDynamicVariables(), and TMVA::VariableGaussTransform::GetCumulativeDist().
Definition at line 111 of file Event.h.
Referenced by TMVA::MethodBoost::AdaBoost().
Definition at line 110 of file Event.h.
Referenced by TMVA::MethodBoost::Bagging(), and TMVA::MethodBoost::ResetBoostWeights().
when this static function is called, it sets the flag whether events with negative event weight should be ignored in the training, or not.
Definition at line 395 of file Event.cxx.
Referenced by ClearDynamicVariables(), and TMVA::MethodBase::ProcessBaseOptions().
when this static function is called, it sets the flag whether events with negative event weight should be ignored in the training, or not.
Definition at line 386 of file Event.cxx.
Referenced by ClearDynamicVariables(), TMVA::OptimizeConfigParameters::EstimatorFunction(), TMVA::Factory::EvaluateAllMethods(), TMVA::Factory::EvaluateAllVariables(), TMVA::Factory::OptimizeAllMethods(), TMVA::OptimizeConfigParameters::optimizeScan(), TMVA::Factory::TestAllMethods(), TMVA::Factory::TrainAllMethods(), and TMVA::MethodBase::TrainMethod().
set spectator value (dimension ivar) to value
Definition at line 363 of file Event.cxx.
Referenced by SetClass().
set the target value (dimension itgt) to value
Definition at line 354 of file Event.cxx.
Referenced by TMVA::MethodLD::GetRegressionValues(), TMVA::MethodSVM::GetRegressionValues(), TMVA::MethodFDA::GetRegressionValues(), TMVA::MethodPDERS::GetRegressionValues(), TMVA::MethodBDT::GetRegressionValues(), TMVA::MethodANNBase::GetRegressionValues(), TMVA::MethodPDEFoam::GetRegressionValues(), TMVA::MethodBDT::InitGradBoost(), SetClass(), TMVA::MethodBDT::UpdateTargets(), and TMVA::MethodBDT::UpdateTargetsRegression().
set variable ivar to val
Definition at line 335 of file Event.cxx.
Referenced by SetClass(), and TMVA::MethodPDEFoam::TrainMultiTargetRegression().
set the variable arrangement
Definition at line 187 of file Event.cxx.
Referenced by TMVA::MethodCategory::GetMvaValue(), and SetClass().
|
friend |
|
mutableprivate |
Definition at line 142 of file Event.h.
Referenced by CopyVarValues(), GetBoostWeight(), GetWeight(), ScaleBoostWeight(), and SetBoostWeight().
|
private |
Definition at line 140 of file Event.h.
Referenced by CopyVarValues(), GetClass(), and SetClass().
|
mutableprivate |
Definition at line 144 of file Event.h.
Referenced by ScaleBoostWeight(), SetBoostWeight(), and SetDoNotBoost().
|
private |
Definition at line 143 of file Event.h.
Referenced by CopyVarValues(), Event(), GetSpectator(), GetValue(), GetValues(), IsDynamic(), and SetVal().
Definition at line 129 of file Event.h.
Referenced by GetWeight(), and SetIgnoreNegWeightsInTraining().
Definition at line 128 of file Event.h.
Referenced by GetWeight(), and SetIsTraining().
|
mutableprivate |
Definition at line 137 of file Event.h.
Referenced by CopyVarValues(), Event(), GetNSpectators(), GetSpectator(), GetSpectators(), GetValue(), and SetSpectator().
|
private |
Definition at line 136 of file Event.h.
Referenced by CopyVarValues(), GetNTargets(), GetTarget(), GetTargets(), and SetTarget().
|
mutableprivate |
Definition at line 132 of file Event.h.
Referenced by CopyVarValues(), Event(), GetNSpectators(), GetNVariables(), GetValue(), GetValues(), and SetVal().
|
mutableprivate |
Definition at line 135 of file Event.h.
Referenced by CopyVarValues(), Event(), GetSpectator(), GetValues(), and ~Event().
|
mutableprivate |
Definition at line 134 of file Event.h.
Referenced by GetValues().
|
mutableprivate |
Definition at line 138 of file Event.h.
Referenced by GetNSpectators(), GetNVariables(), GetValue(), GetValues(), and SetVariableArrangement().
|
private |
Definition at line 141 of file Event.h.
Referenced by CopyVarValues(), GetOriginalWeight(), GetWeight(), and SetWeight().