Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TMVA::Experimental::Internal::RSampler Class Reference

Definition at line 32 of file RSampler.hxx.

Public Member Functions

 RSampler (std::vector< RFlat2DMatrix > &datasets, const std::string &sampleType, bool shuffle=true, const std::size_t setSeed=0)
 
std::size_t GetNumEntries ()
 
void RandomSampler (RFlat2DMatrix &SampledTensor)
 Sample all entries randomly from the datasets.
 
void Sampler (RFlat2DMatrix &SampledTensor)
 Collection of sampling types.
 

Private Attributes

std::vector< RFlat2DMatrix > & fDatasets
 
std::size_t fNumEntries
 
std::string fSampleType
 
std::size_t fSetSeed
 
bool fShuffle
 
std::unique_ptr< RFlat2DMatrixOperatorsfTensorOperators
 

#include <TMVA/BatchGenerator/RSampler.hxx>

Constructor & Destructor Documentation

◆ RSampler()

TMVA::Experimental::Internal::RSampler::RSampler ( std::vector< RFlat2DMatrix > & datasets,
const std::string & sampleType,
bool shuffle = true,
const std::size_t setSeed = 0 )
inline

Definition at line 43 of file RSampler.hxx.

Member Function Documentation

◆ GetNumEntries()

std::size_t TMVA::Experimental::Internal::RSampler::GetNumEntries ( )
inline

Definition at line 72 of file RSampler.hxx.

◆ RandomSampler()

void TMVA::Experimental::Internal::RSampler::RandomSampler ( RFlat2DMatrix & SampledTensor)
inline

Sample all entries randomly from the datasets.

Parameters
[in]SampledTensorTensor with all the sampled entries

Definition at line 65 of file RSampler.hxx.

◆ Sampler()

void TMVA::Experimental::Internal::RSampler::Sampler ( RFlat2DMatrix & SampledTensor)
inline

Collection of sampling types.

Parameters
[in]SampledTensorTensor with all the sampled entries

Definition at line 55 of file RSampler.hxx.

Member Data Documentation

◆ fDatasets

std::vector<RFlat2DMatrix>& TMVA::Experimental::Internal::RSampler::fDatasets
private

Definition at line 35 of file RSampler.hxx.

◆ fNumEntries

std::size_t TMVA::Experimental::Internal::RSampler::fNumEntries
private

Definition at line 39 of file RSampler.hxx.

◆ fSampleType

std::string TMVA::Experimental::Internal::RSampler::fSampleType
private

Definition at line 36 of file RSampler.hxx.

◆ fSetSeed

std::size_t TMVA::Experimental::Internal::RSampler::fSetSeed
private

Definition at line 38 of file RSampler.hxx.

◆ fShuffle

bool TMVA::Experimental::Internal::RSampler::fShuffle
private

Definition at line 37 of file RSampler.hxx.

◆ fTensorOperators

std::unique_ptr<RFlat2DMatrixOperators> TMVA::Experimental::Internal::RSampler::fTensorOperators
private

Definition at line 41 of file RSampler.hxx.

Libraries for TMVA::Experimental::Internal::RSampler:

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