Definition at line 21 of file RBatchLoader.hxx.
#include <TMVA/RBatchLoader.hxx>
◆ RBatchLoader()
TMVA::Experimental::Internal::RBatchLoader::RBatchLoader |
( |
const std::size_t |
batchSize, |
|
|
const std::size_t |
numColumns, |
|
|
const std::size_t |
maxBatches |
|
) |
| |
|
inline |
◆ ~RBatchLoader()
TMVA::Experimental::Internal::RBatchLoader::~RBatchLoader |
( |
| ) |
|
|
inline |
◆ Activate()
void TMVA::Experimental::Internal::RBatchLoader::Activate |
( |
| ) |
|
|
inline |
Activate the batchloader so it will accept chunks to batch.
Definition at line 106 of file RBatchLoader.hxx.
◆ CreateBatch()
Create a batch filled with the events on the given idx.
- Parameters
-
- Returns
Definition at line 131 of file RBatchLoader.hxx.
◆ CreateTrainingBatches()
void TMVA::Experimental::Internal::RBatchLoader::CreateTrainingBatches |
( |
const TMVA::Experimental::RTensor< float > & |
chunkTensor, |
|
|
std::vector< std::size_t > |
eventIndices, |
|
|
const bool |
shuffle = true |
|
) |
| |
|
inline |
Create training batches from the given chunk of data based on the given event indices Batches are added to the training queue of batches The eventIndices can be shuffled to ensure random order for each epoch.
- Parameters
-
chunkTensor | |
eventIndices | |
shuffle | |
Definition at line 150 of file RBatchLoader.hxx.
◆ CreateValidationBatches()
void TMVA::Experimental::Internal::RBatchLoader::CreateValidationBatches |
( |
const TMVA::Experimental::RTensor< float > & |
chunkTensor, |
|
|
const std::vector< std::size_t > |
eventIndices |
|
) |
| |
|
inline |
Create validation batches from the given chunk based on the given event indices Batches are added to the vector of validation batches.
- Parameters
-
Definition at line 194 of file RBatchLoader.hxx.
◆ DeActivate()
void TMVA::Experimental::Internal::RBatchLoader::DeActivate |
( |
| ) |
|
|
inline |
DeActivate the batchloader.
This means that no more batches are created. Batches can still be returned if they are already loaded
Definition at line 117 of file RBatchLoader.hxx.
◆ GetTrainBatch()
Return a batch of data as a unique pointer.
After the batch has been processed, it should be distroyed.
- Returns
- Training batch
Definition at line 53 of file RBatchLoader.hxx.
◆ GetValidationBatch()
Returns a batch of data for validation The owner of this batch has to be with the RBatchLoader.
This is because the same validation batches should be used in all epochs.
- Returns
- Validation batch
Definition at line 75 of file RBatchLoader.hxx.
◆ HasTrainData()
bool TMVA::Experimental::Internal::RBatchLoader::HasTrainData |
( |
| ) |
|
|
inline |
Checks if there are more training batches available.
- Returns
Definition at line 86 of file RBatchLoader.hxx.
◆ HasValidationData()
bool TMVA::Experimental::Internal::RBatchLoader::HasValidationData |
( |
| ) |
|
|
inline |
Checks if there are more training batches available.
- Returns
Definition at line 99 of file RBatchLoader.hxx.
◆ StartValidation()
void TMVA::Experimental::Internal::RBatchLoader::StartValidation |
( |
| ) |
|
|
inline |
◆ fBatchCondition
std::condition_variable TMVA::Experimental::Internal::RBatchLoader::fBatchCondition |
|
private |
◆ fBatchLock
std::mutex TMVA::Experimental::Internal::RBatchLoader::fBatchLock |
|
private |
◆ fBatchSize
std::size_t TMVA::Experimental::Internal::RBatchLoader::fBatchSize |
|
private |
◆ fCurrentBatch
◆ fEmptyTensor
◆ fIsActive
bool TMVA::Experimental::Internal::RBatchLoader::fIsActive = false |
|
private |
◆ fMaxBatches
std::size_t TMVA::Experimental::Internal::RBatchLoader::fMaxBatches |
|
private |
◆ fNumColumns
std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumColumns |
|
private |
◆ fRng
◆ fTrainingBatchQueue
◆ fValidationBatches
◆ fValidationIdx
std::size_t TMVA::Experimental::Internal::RBatchLoader::fValidationIdx = 0 |
|
private |
The documentation for this class was generated from the following file: