TMVA::DataSet Class Reference

#include <DataSet.h>

List of all members.

Public Member Functions

 DataSet (const DataSetInfo &)
virtual ~DataSet ()
void AddEvent (Event *, Types::ETreeType)
Long64_t GetNEvents (Types::ETreeType type=Types::kMaxTreeType) const
Long64_t GetNTrainingEvents () const
Long64_t GetNTestEvents () const
EventGetEvent () const
EventGetEvent (Long64_t ievt) const
EventGetTrainingEvent (Long64_t ievt) const
EventGetTestEvent (Long64_t ievt) const
EventGetEvent (Long64_t ievt, Types::ETreeType type) const
UInt_t GetNVariables () const
UInt_t GetNTargets () const
UInt_t GetNSpectators () const
void SetCurrentEvent (Long64_t ievt) const
void SetCurrentType (Types::ETreeType type) const
Types::ETreeType GetCurrentType () const
void SetEventCollection (std::vector< Event * > *, Types::ETreeType)
const std::vector< Event * > & GetEventCollection (Types::ETreeType type=Types::kMaxTreeType) const
const TTreeGetEventCollectionAsTree ()
Long64_t GetNEvtSigTest ()
Long64_t GetNEvtBkgdTest ()
Long64_t GetNEvtSigTrain ()
Long64_t GetNEvtBkgdTrain ()
Bool_t HasNegativeEventWeights () const
ResultsGetResults (const TString &, Types::ETreeType type, Types::EAnalysisType analysistype)
void DeleteResults (const TString &, Types::ETreeType type, Types::EAnalysisType analysistype)
void SetVerbose (Bool_t)
void DivideTrainingSet (UInt_t blockNum)
void MoveTrainingBlock (Int_t blockInd, Types::ETreeType dest, Bool_t applyChanges=kTRUE)
void IncrementNClassEvents (Int_t type, UInt_t classNumber)
Long64_t GetNClassEvents (Int_t type, UInt_t classNumber)
void ClearNClassEvents (Int_t type)
TTreeGetTree (Types::ETreeType type)
void InitSampling (Float_t fraction, Float_t weight, UInt_t seed=0)
void EventResult (Bool_t successful, Long64_t evtNumber=-1)
void CreateSampling () const
UInt_t TreeIndex (Types::ETreeType type) const
 DataSet (const DataSetInfo &)
virtual ~DataSet ()
void AddEvent (Event *, Types::ETreeType)
Long64_t GetNEvents (Types::ETreeType type=Types::kMaxTreeType) const
Long64_t GetNTrainingEvents () const
Long64_t GetNTestEvents () const
EventGetEvent () const
EventGetEvent (Long64_t ievt) const
EventGetTrainingEvent (Long64_t ievt) const
EventGetTestEvent (Long64_t ievt) const
EventGetEvent (Long64_t ievt, Types::ETreeType type) const
UInt_t GetNVariables () const
UInt_t GetNTargets () const
UInt_t GetNSpectators () const
void SetCurrentEvent (Long64_t ievt) const
void SetCurrentType (Types::ETreeType type) const
Types::ETreeType GetCurrentType () const
void SetEventCollection (std::vector< Event * > *, Types::ETreeType)
const std::vector< Event * > & GetEventCollection (Types::ETreeType type=Types::kMaxTreeType) const
const TTreeGetEventCollectionAsTree ()
Long64_t GetNEvtSigTest ()
Long64_t GetNEvtBkgdTest ()
Long64_t GetNEvtSigTrain ()
Long64_t GetNEvtBkgdTrain ()
Bool_t HasNegativeEventWeights () const
ResultsGetResults (const TString &, Types::ETreeType type, Types::EAnalysisType analysistype)
void DeleteResults (const TString &, Types::ETreeType type, Types::EAnalysisType analysistype)
void SetVerbose (Bool_t)
void DivideTrainingSet (UInt_t blockNum)
void MoveTrainingBlock (Int_t blockInd, Types::ETreeType dest, Bool_t applyChanges=kTRUE)
void IncrementNClassEvents (Int_t type, UInt_t classNumber)
Long64_t GetNClassEvents (Int_t type, UInt_t classNumber)
void ClearNClassEvents (Int_t type)
TTreeGetTree (Types::ETreeType type)
void InitSampling (Float_t fraction, Float_t weight, UInt_t seed=0)
void EventResult (Bool_t successful, Long64_t evtNumber=-1)
void CreateSampling () const
UInt_t TreeIndex (Types::ETreeType type) const

Private Member Functions

 DataSet ()
void DestroyCollection (Types::ETreeType type, Bool_t deleteEvents)
MsgLoggerLog () const
void ApplyTrainingBlockDivision ()
void ApplyTrainingSetDivision ()
 DataSet ()
void DestroyCollection (Types::ETreeType type, Bool_t deleteEvents)
MsgLoggerLog () const
void ApplyTrainingBlockDivision ()
void ApplyTrainingSetDivision ()

Private Attributes

const DataSetInfofdsi
std::vector< Event * >::iterator fEvtCollIt
 datasetinfo that created this dataset
std::vector< std::vector<
Event * > * > 
fEventCollection
std::vector< std::map< TString,
Results * > > 
fResults
 list of events for training/testing/...
UInt_t fCurrentTreeIdx
 [train/test/...][method-identifier]
Long64_t fCurrentEventIdx
std::vector< Char_tfSampling
std::vector< Int_tfSamplingNEvents
std::vector< Float_tfSamplingWeight
std::vector< std::vector<
std::pair< Float_t, Long64_t > * > > 
fSamplingEventList
std::vector< std::vector<
std::pair< Float_t, Long64_t > * > > 
fSamplingSelected
TRandom3fSamplingRandom
std::vector< std::vector<
Long64_t > > 
fClassEvents
Bool_t fHasNegativeEventWeights
 number of events of class 0,1,2,... in training[0]
MsgLoggerfLogger
std::vector< Char_tfBlockBelongToTraining
Long64_t fTrainingBlockSize
const DataSetInfofdsi
std::vector< Event * >::iterator fEvtCollIt
 datasetinfo that created this dataset
std::vector< std::vector<
Event * > * > 
fEventCollection
std::vector< std::map< TString,
Results * > > 
fResults
 list of events for training/testing/...
std::vector< Char_tfSampling
std::vector< Int_tfSamplingNEvents
std::vector< Float_tfSamplingWeight
std::vector< std::vector<
std::pair< Float_t, Long64_t > * > > 
fSamplingEventList
std::vector< std::vector<
std::pair< Float_t, Long64_t > * > > 
fSamplingSelected
TRandom3fSamplingRandom
std::vector< std::vector<
Long64_t > > 
fClassEvents
MsgLoggerfLogger
std::vector< Char_tfBlockBelongToTraining


Detailed Description

Definition at line 80 of file DataSet.h.


Constructor & Destructor Documentation

TMVA::DataSet::DataSet ( const DataSetInfo  ) 

Definition at line 59 of file DataSet.cxx.

References fBlockBelongToTraining, fClassEvents, fSampling, fSamplingNEvents, fSamplingRandom, fSamplingWeight, i, kFALSE, and kTRUE.

TMVA::DataSet::~DataSet (  )  [virtual]

Definition at line 91 of file DataSet.cxx.

References DestroyCollection(), fBlockBelongToTraining, fLogger, fResults, fSamplingEventList, fSamplingRandom, TMVA::Types::kTesting, TMVA::Types::kTraining, TMVA::Types::kTrainingOriginal, and TMVA::Types::kValidation.

TMVA::DataSet::DataSet (  )  [private]

TMVA::DataSet::DataSet ( const DataSetInfo  ) 

virtual TMVA::DataSet::~DataSet (  )  [virtual]

TMVA::DataSet::DataSet (  )  [private]


Member Function Documentation

void TMVA::DataSet::AddEvent ( Event ,
Types::ETreeType   
)

Definition at line 207 of file DataSet.cxx.

References fCurrentTreeIdx, fEventCollection, fEvtCollIt, fHasNegativeEventWeights, and kTRUE.

Referenced by utDataSet::testMethods().

Long64_t TMVA::DataSet::GetNEvents ( Types::ETreeType  type = Types::kMaxTreeType  )  const [inline]

Definition at line 219 of file DataSet.h.

References fSampling, fSamplingSelected, GetEventCollection(), and TreeIndex().

Referenced by TMVA::MethodBase::AddClassifierOutput(), TMVA::MethodBase::AddClassifierOutputProb(), TMVA::MethodBase::AddMulticlassOutput(), TMVA::MethodBase::AddRegressionOutput(), TMVA::DataSetFactory::CalcCovarianceMatrix(), TMVA::MethodBoost::CalcMethodWeight(), TMVA::DataSetFactory::CalcMinMax(), TMVA::MethodBoost::CalcMVAValues(), TMVA::MethodHMatrix::ComputeCovariance(), TMVA::DataSetFactory::CreateDataSet(), TMVA::ResultsMulticlass::CreateMulticlassHistos(), TMVA::MethodCuts::CreateVariablePDFs(), TMVA::ResultsRegression::DeviationAsAFunctionOf(), TMVA::ResultsMulticlass::EstimatorFunction(), TMVA::Factory::EvaluateAllMethods(), TMVA::MethodBoost::FindMVACut(), TMVA::MethodBoost::GetBoostROCIntegral(), TMVA::MethodFisher::GetCov_WithinClass(), TMVA::MethodBase::GetEfficiency(), TMVA::MethodFisher::GetMean(), TMVA::MethodBase::GetNEvents(), GetNTestEvents(), GetNTrainingEvents(), TMVA::MethodLD::GetSum(), TMVA::MethodLD::GetSumVal(), TMVA::MethodBase::GetTrainingEfficiency(), GetTree(), TMVA::MethodSVM::Init(), TMVA::MethodRuleFit::InitEventSample(), InitSampling(), TMVA::MethodMLP::ProcessOptions(), TMVA::ResultsRegression::QuadraticDeviation(), TMVA::MethodBoost::ResetBoostWeights(), TMVA::MethodBoost::SingleBoost(), TMVA::MethodBase::Statistics(), TMVA::MethodBoost::TestClassification(), utDataSet::testMethods(), TMVA::CCTreeWrapper::TestTreeQuality(), TMVA::MethodDT::TestTreeQuality(), TMVA::MethodLikelihood::Train(), TMVA::MethodTMlpANN::Train(), TMVA::MethodSVM::Train(), TMVA::MethodCuts::Train(), TMVA::MethodBase::TrainMethod(), TMVA::MethodMLP::TrainOneEpoch(), and TMVA::RuleFitAPI::WriteTest().

Long64_t TMVA::DataSet::GetNTrainingEvents (  )  const [inline]

Definition at line 90 of file DataSet.h.

References GetNEvents(), and TMVA::Types::kTraining.

Referenced by TMVA::MethodCommittee::AdaBoost(), TMVA::MethodCommittee::Bagging(), TMVA::MethodPDEFoam::CalcXminXmax(), TMVA::MethodLikelihood::CreateRanking(), TMVA::MethodPDERS::GetSample(), TMVA::MethodBase::HasTrainingTree(), TMVA::MethodBDT::Init(), TMVA::MethodBDT::InitEventSample(), TMVA::MethodRuleFit::ProcessOptions(), TMVA::MethodCFMlpANN::ProcessOptions(), TMVA::RuleFitAPI::SetTrainParms(), utDataSet::testMethods(), TMVA::MethodBase::WriteStateToStream(), and TMVA::RuleFitAPI::WriteTrain().

Long64_t TMVA::DataSet::GetNTestEvents (  )  const [inline]

Definition at line 91 of file DataSet.h.

References GetNEvents(), and TMVA::Types::kTesting.

Referenced by TMVA::RuleFitAPI::ReadYhat(), TMVA::RuleFitAPI::SetTestParms(), and utDataSet::testMethods().

TMVA::Event * TMVA::DataSet::GetEvent (  )  const

Definition at line 174 of file DataSet.cxx.

References fCurrentEventIdx, fCurrentTreeIdx, fEventCollection, fSampling, fSamplingSelected, and Long64_t.

Referenced by TMVA::MethodCommittee::AdaBoost(), TMVA::MethodCommittee::Bagging(), TMVA::DataSetFactory::CalcCovarianceMatrix(), TMVA::MethodBoost::CalcMethodWeight(), TMVA::DataSetFactory::CalcMinMax(), TMVA::MethodBoost::CalcMVAValues(), TMVA::ResultsMulticlass::CreateMulticlassHistos(), TMVA::MethodBase::CreateMVAPdfs(), TMVA::MethodLikelihood::CreateRanking(), TMVA::ResultsRegression::DeviationAsAFunctionOf(), TMVA::ResultsMulticlass::EstimatorFunction(), TMVA::Factory::EvaluateAllMethods(), TMVA::MethodBoost::GetBoostROCIntegral(), GetEvent(), GetTestEvent(), GetTrainingEvent(), GetTree(), TMVA::ResultsRegression::QuadraticDeviation(), TMVA::MethodBoost::ResetBoostWeights(), TMVA::MethodBoost::SingleBoost(), TMVA::MethodBoost::TestClassification(), utDataSet::testMethods(), TMVA::CCTreeWrapper::TestTreeQuality(), TMVA::MethodDT::TestTreeQuality(), and TMVA::MethodLikelihood::Train().

Event* TMVA::DataSet::GetEvent ( Long64_t  ievt  )  const [inline]

Definition at line 93 of file DataSet.h.

References fCurrentEventIdx, and GetEvent().

Event* TMVA::DataSet::GetTrainingEvent ( Long64_t  ievt  )  const [inline]

Definition at line 94 of file DataSet.h.

References GetEvent(), and TMVA::Types::kTraining.

Referenced by utDataSet::testMethods().

Event* TMVA::DataSet::GetTestEvent ( Long64_t  ievt  )  const [inline]

Definition at line 95 of file DataSet.h.

References GetEvent(), and TMVA::Types::kTesting.

Referenced by utDataSet::testMethods().

Event* TMVA::DataSet::GetEvent ( Long64_t  ievt,
Types::ETreeType  type 
) const [inline]

Definition at line 96 of file DataSet.h.

References fCurrentEventIdx, fCurrentTreeIdx, GetEvent(), and TreeIndex().

UInt_t TMVA::DataSet::GetNVariables (  )  const

Definition at line 186 of file DataSet.cxx.

References fdsi, and TMVA::DataSetInfo::GetNVariables().

Referenced by TMVA::DataSetFactory::CalcCorrelationMatrix(), TMVA::DataSetFactory::CalcCovarianceMatrix(), TMVA::DataSetFactory::CalcMinMax(), TMVA::MethodPDEFoam::CalcXminXmax(), TMVA::MethodTMlpANN::GetMvaValue(), TMVA::MethodTMlpANN::ReadWeightsFromStream(), TMVA::MethodTMlpANN::ReadWeightsFromXML(), utDataSet::testMethods(), TMVA::MethodCuts::Train(), and TMVA::MethodPDEFoam::TrainMultiTargetRegression().

UInt_t TMVA::DataSet::GetNTargets (  )  const

Definition at line 193 of file DataSet.cxx.

References fdsi, and TMVA::DataSetInfo::GetNTargets().

Referenced by TMVA::DataSetFactory::CalcMinMax(), TMVA::MethodPDEFoam::CalcXminXmax(), TMVA::MethodPDEFoam::GetRegressionValues(), TMVA::MethodPDEFoam::ReadWeightsFromXML(), TMVA::MethodPDEFoam::SetXminXmax(), utDataSet::testMethods(), TMVA::MethodPDEFoam::TrainMonoTargetRegression(), and TMVA::MethodPDEFoam::TrainMultiTargetRegression().

UInt_t TMVA::DataSet::GetNSpectators (  )  const

Definition at line 200 of file DataSet.cxx.

References fdsi, and TMVA::DataSetInfo::GetNSpectators().

Referenced by TMVA::DataSetFactory::CalcMinMax(), and utDataSet::testMethods().

void TMVA::DataSet::SetCurrentEvent ( Long64_t  ievt  )  const [inline]

Definition at line 104 of file DataSet.h.

References fCurrentEventIdx.

Referenced by TMVA::DataSetFactory::BuildDynamicDataSet(), TMVA::MethodBase::GetTrainingEfficiency(), and TMVA::MethodBase::SetCurrentEvent().

void TMVA::DataSet::SetCurrentType ( Types::ETreeType  type  )  const [inline]

Definition at line 105 of file DataSet.h.

References fCurrentTreeIdx, and TreeIndex().

Referenced by TMVA::MethodBase::AddClassifierOutput(), TMVA::MethodBase::AddClassifierOutputProb(), TMVA::MethodBase::AddMulticlassOutput(), TMVA::MethodBase::AddRegressionOutput(), TMVA::MethodMLP::BackPropagationMinimize(), TMVA::MethodMLP::BFGSMinimize(), TMVA::DataSetFactory::BuildDynamicDataSet(), TMVA::MethodBoost::CalcMVAValues(), TMVA::MethodMLP::CalculateEstimator(), TMVA::MethodHMatrix::ComputeCovariance(), TMVA::ResultsMulticlass::CreateMulticlassHistos(), TMVA::MethodBase::CreateMVAPdfs(), TMVA::ResultsRegression::DeviationAsAFunctionOf(), TMVA::ResultsMulticlass::EstimatorFunction(), TMVA::Factory::EvaluateAllMethods(), TMVA::MethodBoost::GetBoostROCIntegral(), TMVA::MethodCuts::GetEfficiency(), TMVA::MethodBase::GetEfficiency(), TMVA::MethodBase::GetMulticlassEfficiency(), TMVA::MethodBase::GetMulticlassTrainingEfficiency(), TMVA::MethodBase::GetTrainingEfficiency(), GetTree(), TMVA::MethodMLP::ProcessOptions(), TMVA::ResultsRegression::QuadraticDeviation(), TMVA::MethodBoost::SingleTrain(), TMVA::MethodBase::Statistics(), TMVA::MethodBase::TestClassification(), TMVA::MethodBoost::TestClassification(), TMVA::MethodBase::TestRegression(), TMVA::CCTreeWrapper::TestTreeQuality(), TMVA::MethodDT::TestTreeQuality(), TMVA::MethodBoost::Train(), TMVA::MethodSVM::Train(), TMVA::MethodBase::TrainMethod(), and TMVA::RuleFitAPI::WriteTest().

TMVA::Types::ETreeType TMVA::DataSet::GetCurrentType (  )  const [inline]

Definition at line 207 of file DataSet.h.

References fCurrentTreeIdx, TMVA::Types::kMaxTreeType, TMVA::Types::kTesting, TMVA::Types::kTraining, TMVA::Types::kTrainingOriginal, and TMVA::Types::kValidation.

Referenced by TMVA::MethodMLP::CalculateEstimator(), CreateSampling(), GetTree(), InitSampling(), TMVA::MethodBase::Statistics(), and TMVA::MethodBase::TestRegression().

void TMVA::DataSet::SetEventCollection ( std::vector< Event * > *  ,
Types::ETreeType   
)

Referenced by TMVA::DataSetFactory::BuildDynamicDataSet(), and TMVA::DataSetFactory::MixEvents().

const std::vector< TMVA::Event * > & TMVA::DataSet::GetEventCollection ( Types::ETreeType  type = Types::kMaxTreeType  )  const [inline]

Definition at line 229 of file DataSet.h.

References fEventCollection, and TreeIndex().

Referenced by TMVA::MethodBase::GetEventCollection(), TMVA::OptimizeConfigParameters::GetMVADists(), GetNEvents(), and TMVA::Factory::WriteDataInformation().

const TTree* TMVA::DataSet::GetEventCollectionAsTree (  ) 

Long64_t TMVA::DataSet::GetNEvtSigTest (  ) 

Definition at line 373 of file DataSet.cxx.

References fdsi, TMVA::DataSetInfo::GetClassInfo(), GetNClassEvents(), TMVA::ClassInfo::GetNumber(), and TMVA::Types::kTesting.

Referenced by TMVA::Factory::EvaluateAllMethods().

Long64_t TMVA::DataSet::GetNEvtBkgdTest (  ) 

Definition at line 380 of file DataSet.cxx.

References fdsi, TMVA::DataSetInfo::GetClassInfo(), GetNClassEvents(), TMVA::ClassInfo::GetNumber(), and TMVA::Types::kTesting.

Referenced by TMVA::Factory::EvaluateAllMethods().

Long64_t TMVA::DataSet::GetNEvtSigTrain (  ) 

Definition at line 387 of file DataSet.cxx.

References fdsi, TMVA::DataSetInfo::GetClassInfo(), GetNClassEvents(), TMVA::ClassInfo::GetNumber(), and TMVA::Types::kTraining.

Referenced by TMVA::MethodTMlpANN::Train(), and TMVA::MethodPDEFoam::Train().

Long64_t TMVA::DataSet::GetNEvtBkgdTrain (  ) 

Definition at line 394 of file DataSet.cxx.

References fdsi, TMVA::DataSetInfo::GetClassInfo(), GetNClassEvents(), TMVA::ClassInfo::GetNumber(), and TMVA::Types::kTraining.

Referenced by TMVA::MethodPDEFoam::Train().

Bool_t TMVA::DataSet::HasNegativeEventWeights (  )  const [inline]

Definition at line 117 of file DataSet.h.

References fHasNegativeEventWeights.

Referenced by utDataSet::testMethods().

TMVA::Results * TMVA::DataSet::GetResults ( const TString ,
Types::ETreeType  type,
Types::EAnalysisType  analysistype 
)

Definition at line 233 of file DataSet.cxx.

References fdsi, fResults, TMVA::Types::kClassification, TMVA::Types::kMaxAnalysisType, TMVA::Types::kMulticlass, TMVA::Types::kNoAnalysisType, TMVA::Types::kRegression, TMVA::Results::SetTreeType(), and TreeIndex().

Referenced by TMVA::MethodBase::AddClassifierOutput(), TMVA::MethodBase::AddClassifierOutputProb(), TMVA::MethodBase::AddMulticlassOutput(), TMVA::MethodBase::AddRegressionOutput(), TMVA::MethodBase::CreateMVAPdfs(), TMVA::MethodCuts::GetEfficiency(), TMVA::MethodBase::GetEfficiency(), TMVA::MethodBase::GetMaximumSignificance(), TMVA::MethodBase::GetMulticlassEfficiency(), TMVA::MethodBase::GetMulticlassTrainingEfficiency(), TMVA::MethodBase::GetRegressionDeviation(), TMVA::MethodBase::GetTrainingEfficiency(), TMVA::MethodCuts::GetTrainingEfficiency(), TMVA::MethodBase::TestClassification(), TMVA::MethodBase::TestMulticlass(), TMVA::MethodBDT::Train(), and TMVA::MethodBase::WriteEvaluationHistosToFile().

void TMVA::DataSet::DeleteResults ( const TString ,
Types::ETreeType  type,
Types::EAnalysisType  analysistype 
)

Definition at line 292 of file DataSet.cxx.

References Endl, fResults, TMVA::kDEBUG, TMVA::kFATAL, TMVA::kINFO, and Log().

Referenced by TMVA::MethodBDT::Reset().

void TMVA::DataSet::SetVerbose ( Bool_t   )  [inline]

Definition at line 126 of file DataSet.h.

void TMVA::DataSet::DivideTrainingSet ( UInt_t  blockNum  ) 

Definition at line 320 of file DataSet.cxx.

References ApplyTrainingSetDivision(), fBlockBelongToTraining, fClassEvents, fEventCollection, i, TMVA::Types::kTraining, TMVA::Types::kTrainingOriginal, kTRUE, and TreeIndex().

Referenced by TMVA::MethodDT::MonitorBoost().

void TMVA::DataSet::MoveTrainingBlock ( Int_t  blockInd,
Types::ETreeType  dest,
Bool_t  applyChanges = kTRUE 
)

Definition at line 362 of file DataSet.cxx.

References ApplyTrainingSetDivision(), fBlockBelongToTraining, kFALSE, kTRUE, and TMVA::Types::kValidation.

Referenced by TMVA::MethodDT::MonitorBoost().

void TMVA::DataSet::IncrementNClassEvents ( Int_t  type,
UInt_t  classNumber 
)

Definition at line 127 of file DataSet.cxx.

References fClassEvents.

Long64_t TMVA::DataSet::GetNClassEvents ( Int_t  type,
UInt_t  classNumber 
)

Definition at line 142 of file DataSet.cxx.

References Endl, fClassEvents, fdsi, TMVA::DataSetInfo::GetClassInfo(), TMVA::ClassInfo::GetName(), TMVA::kFATAL, Log(), and NULL.

Referenced by TMVA::DataSetFactory::BuildInitialDataSet(), GetNEvtBkgdTest(), GetNEvtBkgdTrain(), GetNEvtSigTest(), and GetNEvtSigTrain().

void TMVA::DataSet::ClearNClassEvents ( Int_t  type  ) 

Definition at line 135 of file DataSet.cxx.

References fClassEvents.

TTree * TMVA::DataSet::GetTree ( Types::ETreeType  type  ) 

Definition at line 550 of file DataSet.cxx.

References TTree::Branch(), Endl, fdsi, TTree::Fill(), fResults, TMVA::Event::GetClass(), TMVA::DataSetInfo::GetClassInfo(), GetCurrentType(), TTree::GetEntries(), GetEvent(), TMVA::VariableInfo::GetInternalName(), TNamed::GetName(), TMVA::ClassInfo::GetName(), TMVA::DataSetInfo::GetNClasses(), GetNEvents(), TMVA::DataSetInfo::GetNSpectators(), TMVA::DataSetInfo::GetNTargets(), TMVA::DataSetInfo::GetNVariables(), TMVA::DataSetInfo::GetSpectatorInfos(), TMVA::DataSetInfo::GetTargetInfo(), TMVA::DataSetInfo::GetTargetInfos(), TMVA::DataSetInfo::GetVariableInfos(), i, TMVA::Types::kClassification, TMVA::kDEBUG, TMVA::kINFO, TMVA::Types::kMulticlass, TMVA::Types::kRegression, TMVA::Types::kTesting, TMVA::Types::kTraining, TMVA::kWARNING, Log(), Long64_t, n, SetCurrentType(), TString::Sizeof(), TreeIndex(), and val.

Referenced by TMVA::Factory::EvaluateAllMethods().

void TMVA::DataSet::InitSampling ( Float_t  fraction,
Float_t  weight,
UInt_t  seed = 0 
)

Definition at line 401 of file DataSet.cxx.

References fSampling, fSamplingEventList, fSamplingNEvents, fSamplingRandom, fSamplingSelected, fSamplingWeight, GetCurrentType(), GetNEvents(), Long64_t, p, and TreeIndex().

Referenced by TMVA::MethodMLP::BackPropagationMinimize(), and TMVA::MethodMLP::BFGSMinimize().

void TMVA::DataSet::EventResult ( Bool_t  successful,
Long64_t  evtNumber = -1 
)

Definition at line 513 of file DataSet.cxx.

References Endl, fCurrentTreeIdx, fSampling, fSamplingEventList, fSamplingWeight, TMVA::kWARNING, Log(), Long64_t, and start.

Referenced by TMVA::MethodMLP::BackPropagationMinimize(), and TMVA::MethodMLP::BFGSMinimize().

void TMVA::DataSet::CreateSampling (  )  const

Definition at line 451 of file DataSet.cxx.

References Endl, fSampling, fSamplingEventList, fSamplingNEvents, fSamplingRandom, fSamplingSelected, GetCurrentType(), i, if(), TMVA::kFATAL, Log(), TRandom3::Rndm(), sort(), and TreeIndex().

Referenced by TMVA::MethodMLP::BackPropagationMinimize(), and TMVA::MethodMLP::BFGSMinimize().

UInt_t TMVA::DataSet::TreeIndex ( Types::ETreeType  type  )  const [inline]

Definition at line 194 of file DataSet.h.

References fCurrentTreeIdx, TMVA::Types::kMaxTreeType, TMVA::Types::kTesting, TMVA::Types::kTraining, TMVA::Types::kTrainingOriginal, and TMVA::Types::kValidation.

Referenced by ApplyTrainingSetDivision(), CreateSampling(), DestroyCollection(), DivideTrainingSet(), GetEvent(), TMVA::MethodBase::GetEventCollection(), GetEventCollection(), GetNEvents(), GetResults(), GetTree(), InitSampling(), and SetCurrentType().

void TMVA::DataSet::DestroyCollection ( Types::ETreeType  type,
Bool_t  deleteEvents 
) [private]

Definition at line 161 of file DataSet.cxx.

References fEventCollection, i, j, and TreeIndex().

Referenced by ~DataSet().

MsgLogger& TMVA::DataSet::Log (  )  const [inline, private]

Definition at line 180 of file DataSet.h.

References fLogger.

Referenced by CreateSampling(), DeleteResults(), EventResult(), GetNClassEvents(), and GetTree().

void TMVA::DataSet::ApplyTrainingBlockDivision (  )  [private]

void TMVA::DataSet::ApplyTrainingSetDivision (  )  [private]

Definition at line 343 of file DataSet.cxx.

References fBlockBelongToTraining, fEventCollection, i, TMVA::Types::kTraining, TMVA::Types::kTrainingOriginal, TMVA::Types::kValidation, and TreeIndex().

Referenced by DivideTrainingSet(), and MoveTrainingBlock().

void TMVA::DataSet::AddEvent ( Event ,
Types::ETreeType   
)

Long64_t TMVA::DataSet::GetNEvents ( Types::ETreeType  type = Types::kMaxTreeType  )  const

Long64_t TMVA::DataSet::GetNTrainingEvents (  )  const [inline]

Definition at line 90 of file DataSet.h.

References GetNEvents(), and TMVA::Types::kTraining.

Long64_t TMVA::DataSet::GetNTestEvents (  )  const [inline]

Definition at line 91 of file DataSet.h.

References GetNEvents(), and TMVA::Types::kTesting.

Event* TMVA::DataSet::GetEvent (  )  const

Event* TMVA::DataSet::GetEvent ( Long64_t  ievt  )  const [inline]

Definition at line 93 of file DataSet.h.

References fCurrentEventIdx, and GetEvent().

Event* TMVA::DataSet::GetTrainingEvent ( Long64_t  ievt  )  const [inline]

Definition at line 94 of file DataSet.h.

References GetEvent(), and TMVA::Types::kTraining.

Event* TMVA::DataSet::GetTestEvent ( Long64_t  ievt  )  const [inline]

Definition at line 95 of file DataSet.h.

References GetEvent(), and TMVA::Types::kTesting.

Event* TMVA::DataSet::GetEvent ( Long64_t  ievt,
Types::ETreeType  type 
) const [inline]

Definition at line 96 of file DataSet.h.

References fCurrentEventIdx, fCurrentTreeIdx, GetEvent(), and TreeIndex().

UInt_t TMVA::DataSet::GetNVariables (  )  const

UInt_t TMVA::DataSet::GetNTargets (  )  const

UInt_t TMVA::DataSet::GetNSpectators (  )  const

void TMVA::DataSet::SetCurrentEvent ( Long64_t  ievt  )  const [inline]

Definition at line 104 of file DataSet.h.

References fCurrentEventIdx.

void TMVA::DataSet::SetCurrentType ( Types::ETreeType  type  )  const [inline]

Definition at line 105 of file DataSet.h.

References fCurrentTreeIdx, and TreeIndex().

Types::ETreeType TMVA::DataSet::GetCurrentType (  )  const

void TMVA::DataSet::SetEventCollection ( std::vector< Event * > *  ,
Types::ETreeType   
)

const std::vector<Event*>& TMVA::DataSet::GetEventCollection ( Types::ETreeType  type = Types::kMaxTreeType  )  const

const TTree* TMVA::DataSet::GetEventCollectionAsTree (  ) 

Long64_t TMVA::DataSet::GetNEvtSigTest (  ) 

Long64_t TMVA::DataSet::GetNEvtBkgdTest (  ) 

Long64_t TMVA::DataSet::GetNEvtSigTrain (  ) 

Long64_t TMVA::DataSet::GetNEvtBkgdTrain (  ) 

Bool_t TMVA::DataSet::HasNegativeEventWeights (  )  const [inline]

Definition at line 117 of file DataSet.h.

References fHasNegativeEventWeights.

Results* TMVA::DataSet::GetResults ( const TString ,
Types::ETreeType  type,
Types::EAnalysisType  analysistype 
)

void TMVA::DataSet::DeleteResults ( const TString ,
Types::ETreeType  type,
Types::EAnalysisType  analysistype 
)

void TMVA::DataSet::SetVerbose ( Bool_t   )  [inline]

Definition at line 126 of file DataSet.h.

void TMVA::DataSet::DivideTrainingSet ( UInt_t  blockNum  ) 

void TMVA::DataSet::MoveTrainingBlock ( Int_t  blockInd,
Types::ETreeType  dest,
Bool_t  applyChanges = kTRUE 
)

void TMVA::DataSet::IncrementNClassEvents ( Int_t  type,
UInt_t  classNumber 
)

Long64_t TMVA::DataSet::GetNClassEvents ( Int_t  type,
UInt_t  classNumber 
)

void TMVA::DataSet::ClearNClassEvents ( Int_t  type  ) 

TTree* TMVA::DataSet::GetTree ( Types::ETreeType  type  ) 

void TMVA::DataSet::InitSampling ( Float_t  fraction,
Float_t  weight,
UInt_t  seed = 0 
)

void TMVA::DataSet::EventResult ( Bool_t  successful,
Long64_t  evtNumber = -1 
)

void TMVA::DataSet::CreateSampling (  )  const

UInt_t TMVA::DataSet::TreeIndex ( Types::ETreeType  type  )  const

void TMVA::DataSet::DestroyCollection ( Types::ETreeType  type,
Bool_t  deleteEvents 
) [private]

MsgLogger& TMVA::DataSet::Log (  )  const [inline, private]

Definition at line 180 of file DataSet.h.

References fLogger.

void TMVA::DataSet::ApplyTrainingBlockDivision (  )  [private]

void TMVA::DataSet::ApplyTrainingSetDivision (  )  [private]


Member Data Documentation

const DataSetInfo& TMVA::DataSet::fdsi [private]

Definition at line 154 of file DataSet.h.

Referenced by GetNClassEvents(), GetNEvtBkgdTest(), GetNEvtBkgdTrain(), GetNEvtSigTest(), GetNEvtSigTrain(), GetNSpectators(), GetNTargets(), GetNVariables(), GetResults(), and GetTree().

std::vector<Event*>::iterator TMVA::DataSet::fEvtCollIt [private]

datasetinfo that created this dataset

Definition at line 156 of file DataSet.h.

Referenced by AddEvent().

std::vector< std::vector<Event*>* > TMVA::DataSet::fEventCollection [private]

Definition at line 157 of file DataSet.h.

Referenced by AddEvent(), ApplyTrainingSetDivision(), DestroyCollection(), DivideTrainingSet(), GetEvent(), and GetEventCollection().

std::vector< std::map< TString, Results* > > TMVA::DataSet::fResults [private]

list of events for training/testing/...

Definition at line 159 of file DataSet.h.

Referenced by DeleteResults(), GetResults(), GetTree(), and ~DataSet().

UInt_t TMVA::DataSet::fCurrentTreeIdx [mutable, private]

[train/test/...][method-identifier]

Definition at line 161 of file DataSet.h.

Referenced by AddEvent(), EventResult(), GetCurrentType(), GetEvent(), SetCurrentType(), and TreeIndex().

Long64_t TMVA::DataSet::fCurrentEventIdx [mutable, private]

Definition at line 162 of file DataSet.h.

Referenced by GetEvent(), and SetCurrentEvent().

std::vector<Char_t> TMVA::DataSet::fSampling [private]

Definition at line 165 of file DataSet.h.

Referenced by CreateSampling(), DataSet(), EventResult(), GetEvent(), GetNEvents(), and InitSampling().

std::vector<Int_t> TMVA::DataSet::fSamplingNEvents [private]

Definition at line 166 of file DataSet.h.

Referenced by CreateSampling(), DataSet(), and InitSampling().

std::vector<Float_t> TMVA::DataSet::fSamplingWeight [private]

Definition at line 167 of file DataSet.h.

Referenced by DataSet(), EventResult(), and InitSampling().

std::vector< std::vector< std::pair< Float_t, Long64_t >* > > TMVA::DataSet::fSamplingEventList [mutable, private]

Definition at line 168 of file DataSet.h.

Referenced by CreateSampling(), EventResult(), InitSampling(), and ~DataSet().

std::vector< std::vector< std::pair< Float_t, Long64_t >* > > TMVA::DataSet::fSamplingSelected [mutable, private]

Definition at line 169 of file DataSet.h.

Referenced by CreateSampling(), GetEvent(), GetNEvents(), and InitSampling().

TRandom3* TMVA::DataSet::fSamplingRandom [private]

Definition at line 170 of file DataSet.h.

Referenced by CreateSampling(), DataSet(), InitSampling(), and ~DataSet().

std::vector< std::vector<Long64_t> > TMVA::DataSet::fClassEvents [private]

Definition at line 174 of file DataSet.h.

Referenced by ClearNClassEvents(), DataSet(), DivideTrainingSet(), GetNClassEvents(), and IncrementNClassEvents().

Bool_t TMVA::DataSet::fHasNegativeEventWeights [private]

number of events of class 0,1,2,... in training[0]

Definition at line 177 of file DataSet.h.

Referenced by AddEvent(), and HasNegativeEventWeights().

MsgLogger* TMVA::DataSet::fLogger [mutable, private]

Definition at line 179 of file DataSet.h.

Referenced by Log(), and ~DataSet().

std::vector<Char_t> TMVA::DataSet::fBlockBelongToTraining [private]

Definition at line 181 of file DataSet.h.

Referenced by ApplyTrainingSetDivision(), DataSet(), DivideTrainingSet(), MoveTrainingBlock(), and ~DataSet().

Long64_t TMVA::DataSet::fTrainingBlockSize [private]

Definition at line 185 of file DataSet.h.

const DataSetInfo& TMVA::DataSet::fdsi [private]

Definition at line 154 of file DataSet.h.

std::vector<Event*>::iterator TMVA::DataSet::fEvtCollIt [private]

datasetinfo that created this dataset

Definition at line 156 of file DataSet.h.

std::vector< std::vector<Event*>* > TMVA::DataSet::fEventCollection [private]

Definition at line 157 of file DataSet.h.

std::vector< std::map< TString, Results* > > TMVA::DataSet::fResults [private]

list of events for training/testing/...

Definition at line 159 of file DataSet.h.

std::vector<Char_t> TMVA::DataSet::fSampling [private]

Definition at line 165 of file DataSet.h.

std::vector<Int_t> TMVA::DataSet::fSamplingNEvents [private]

Definition at line 166 of file DataSet.h.

std::vector<Float_t> TMVA::DataSet::fSamplingWeight [private]

Definition at line 167 of file DataSet.h.

std::vector< std::vector< std::pair< Float_t, Long64_t >* > > TMVA::DataSet::fSamplingEventList [mutable, private]

Definition at line 168 of file DataSet.h.

std::vector< std::vector< std::pair< Float_t, Long64_t >* > > TMVA::DataSet::fSamplingSelected [mutable, private]

Definition at line 169 of file DataSet.h.

TRandom3* TMVA::DataSet::fSamplingRandom [private]

Definition at line 170 of file DataSet.h.

std::vector< std::vector<Long64_t> > TMVA::DataSet::fClassEvents [private]

Definition at line 174 of file DataSet.h.

MsgLogger* TMVA::DataSet::fLogger [mutable, private]

Definition at line 179 of file DataSet.h.

std::vector<Char_t> TMVA::DataSet::fBlockBelongToTraining [private]

Definition at line 181 of file DataSet.h.


The documentation for this class was generated from the following files:
Generated on Tue Jul 5 17:01:23 2011 for ROOT_528-00b_version by  doxygen 1.5.1