Definition at line 32 of file RSampler.hxx.
#include <TMVA/BatchGenerator/RSampler.hxx>
◆ RSampler()
| TMVA::Experimental::Internal::RSampler::RSampler |
( |
std::vector< RFlat2DMatrix > & | datasets, |
|
|
const std::string & | sampleType, |
|
|
float | sampleRatio, |
|
|
bool | replacement = false, |
|
|
bool | shuffle = true, |
|
|
std::size_t | setSeed = 0 ) |
|
inline |
◆ GetNumEntries()
| std::size_t TMVA::Experimental::Internal::RSampler::GetNumEntries |
( |
| ) |
|
|
inline |
◆ RandomOversampler()
| void TMVA::Experimental::Internal::RSampler::RandomOversampler |
( |
RFlat2DMatrix & | ShuffledTensor | ) |
|
|
inline |
Oversample entries randomly from the minority dataset.
- Parameters
-
| [in] | SampledTensor | Tensor with all the sampled entries |
Definition at line 164 of file RSampler.hxx.
◆ RandomUndersampler()
| void TMVA::Experimental::Internal::RSampler::RandomUndersampler |
( |
RFlat2DMatrix & | ShuffledTensor | ) |
|
|
inline |
Undersample entries randomly from the majority dataset.
- Parameters
-
| [in] | SampledTensor | Tensor with all the sampled entries |
Definition at line 135 of file RSampler.hxx.
◆ Sampler()
| void TMVA::Experimental::Internal::RSampler::Sampler |
( |
RFlat2DMatrix & | SampledTensor | ) |
|
|
inline |
Collection of sampling types.
- Parameters
-
| [in] | SampledTensor | Tensor with all the sampled entries |
Definition at line 84 of file RSampler.hxx.
◆ SampleWithoutReplacement()
| void TMVA::Experimental::Internal::RSampler::SampleWithoutReplacement |
( |
std::size_t | n_samples, |
|
|
std::size_t | max ) |
|
inline |
Add indices without replacement to fSamples.
- Parameters
-
| [in] | n_samples | Number of indices to sample |
| [in] | max | Max index of the sample distribution |
Definition at line 219 of file RSampler.hxx.
◆ SampleWithReplacement()
| void TMVA::Experimental::Internal::RSampler::SampleWithReplacement |
( |
std::size_t | n_samples, |
|
|
std::size_t | max ) |
|
inline |
Add indices with replacement to fSamples.
- Parameters
-
| [in] | n_samples | Number of indices to sample |
| [in] | max | Max index of the sample distribution |
Definition at line 188 of file RSampler.hxx.
◆ SetupRandomOversampler()
| void TMVA::Experimental::Internal::RSampler::SetupRandomOversampler |
( |
| ) |
|
|
inline |
Calculate fNumEntries and major/minor variables for the random oversampler.
Definition at line 115 of file RSampler.hxx.
◆ SetupRandomUndersampler()
| void TMVA::Experimental::Internal::RSampler::SetupRandomUndersampler |
( |
| ) |
|
|
inline |
Calculate fNumEntries and major/minor variables for the random undersampler.
Definition at line 96 of file RSampler.hxx.
◆ SetupSampler()
| void TMVA::Experimental::Internal::RSampler::SetupSampler |
( |
| ) |
|
|
inline |
Calculate fNumEntries and major/minor variables.
Definition at line 71 of file RSampler.hxx.
◆ fDatasets
| std::vector<RFlat2DMatrix>& TMVA::Experimental::Internal::RSampler::fDatasets |
|
private |
◆ fMajor
| std::size_t TMVA::Experimental::Internal::RSampler::fMajor |
|
private |
◆ fMinor
| std::size_t TMVA::Experimental::Internal::RSampler::fMinor |
|
private |
◆ fNumEntries
| std::size_t TMVA::Experimental::Internal::RSampler::fNumEntries |
|
private |
◆ fNumMajor
| std::size_t TMVA::Experimental::Internal::RSampler::fNumMajor |
|
private |
◆ fNumMinor
| std::size_t TMVA::Experimental::Internal::RSampler::fNumMinor |
|
private |
◆ fNumResampledMajor
| std::size_t TMVA::Experimental::Internal::RSampler::fNumResampledMajor |
|
private |
◆ fNumResampledMinor
| std::size_t TMVA::Experimental::Internal::RSampler::fNumResampledMinor |
|
private |
◆ fReplacement
| bool TMVA::Experimental::Internal::RSampler::fReplacement |
|
private |
◆ fSampleRatio
| float TMVA::Experimental::Internal::RSampler::fSampleRatio |
|
private |
◆ fSamples
| std::vector<std::size_t> TMVA::Experimental::Internal::RSampler::fSamples |
|
private |
◆ fSampleType
| std::string TMVA::Experimental::Internal::RSampler::fSampleType |
|
private |
◆ fSetSeed
| std::size_t TMVA::Experimental::Internal::RSampler::fSetSeed |
|
private |
◆ fShuffle
| bool TMVA::Experimental::Internal::RSampler::fShuffle |
|
private |
◆ fTensorOperators
The documentation for this class was generated from the following file: