Definition at line 41 of file RBatchLoader.hxx.
#include <TMVA/BatchGenerator/RBatchLoader.hxx>
◆ RBatchLoader()
| TMVA::Experimental::Internal::RBatchLoader::RBatchLoader |
( |
std::size_t | batchSize, |
|
|
std::size_t | numColumns ) |
|
inline |
◆ Activate()
| void TMVA::Experimental::Internal::RBatchLoader::Activate |
( |
| ) |
|
|
inline |
◆ CreateBatch()
Return a batch of data as a unique pointer.
After the batch has been processed, it should be destroyed.
- Parameters
-
| [in] | chunkTensor | RTensor with the data from the chunk |
| [in] | idxs | Index of batch in the chunk |
- Returns
- Training batch
Definition at line 114 of file RBatchLoader.hxx.
◆ CreateTrainingBatches()
| void TMVA::Experimental::Internal::RBatchLoader::CreateTrainingBatches |
( |
TMVA::Experimental::RTensor< float > & | chunkTensor, |
|
|
int | lastbatch, |
|
|
std::size_t | leftoverBatchSize, |
|
|
bool | dropRemainder ) |
|
inline |
Creating the training batches from a chunk and add them to the queue.
- Parameters
-
| [in] | chunkTensor | RTensor with the data from the chunk |
| [in] | lastbatch | Check if the batch in the chunk is the last one |
| [in] | leftoverBatchSize | Size of the leftover batch in the training dataset |
| [in] | dromRemainder | Bool to drop the remainder batch or not |
Definition at line 161 of file RBatchLoader.hxx.
◆ CreateValidationBatches()
| void TMVA::Experimental::Internal::RBatchLoader::CreateValidationBatches |
( |
TMVA::Experimental::RTensor< float > & | chunkTensor, |
|
|
std::size_t | lastbatch, |
|
|
std::size_t | leftoverBatchSize, |
|
|
bool | dropRemainder ) |
|
inline |
Creating the validation batches from a chunk and adding them to the queue.
- Parameters
-
| [in] | chunkTensor | RTensor with the data from the chunk |
| [in] | lastbatch | Check if the batch in the chunk is the last one |
| [in] | leftoverBatchSize | Size of the leftover batch in the validation dataset |
| [in] | dromRemainder | Bool to drop the remainder batch or not |
Definition at line 266 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 99 of file RBatchLoader.hxx.
◆ GetNumTrainingBatchQueue()
| std::size_t TMVA::Experimental::Internal::RBatchLoader::GetNumTrainingBatchQueue |
( |
| ) |
|
|
inline |
◆ GetNumValidationBatchQueue()
| std::size_t TMVA::Experimental::Internal::RBatchLoader::GetNumValidationBatchQueue |
( |
| ) |
|
|
inline |
◆ GetTrainBatch()
Loading the training batch from the queue.
- Returns
- Training batch
Definition at line 126 of file RBatchLoader.hxx.
◆ GetValidationBatch()
Loading the validation batch from the queue.
- Returns
- Training batch
Definition at line 142 of file RBatchLoader.hxx.
◆ 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
◆ fIsActive
| bool TMVA::Experimental::Internal::RBatchLoader::fIsActive = false |
|
private |
◆ fNumColumns
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumColumns |
|
private |
◆ fNumTrainingBatchQueue
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumTrainingBatchQueue |
|
private |
◆ fNumValidationBatchQueue
| std::size_t TMVA::Experimental::Internal::RBatchLoader::fNumValidationBatchQueue |
|
private |
◆ fPrimaryLeftoverTrainingBatch
◆ fPrimaryLeftoverValidationBatch
◆ fSecondaryLeftoverTrainingBatch
◆ fSecondaryLeftoverValidationBatch
◆ fTrainingBatchQueue
◆ fValidationBatchQueue
The documentation for this class was generated from the following file: