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()
| std::unique_ptr< RFlat2DMatrix > TMVA::Experimental::Internal::RBatchLoader::CreateBatch |
( |
RFlat2DMatrix & | chunTensor, |
|
|
std::size_t | idxs ) |
|
inline |
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 109 of file RBatchLoader.hxx.
◆ CreateTrainingBatches()
| void TMVA::Experimental::Internal::RBatchLoader::CreateTrainingBatches |
( |
RFlat2DMatrix & | 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 156 of file RBatchLoader.hxx.
◆ CreateValidationBatches()
| void TMVA::Experimental::Internal::RBatchLoader::CreateValidationBatches |
( |
RFlat2DMatrix & | 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] | dropRemainder | Bool to drop the remainder batch or not |
Definition at line 251 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 95 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()
| RFlat2DMatrix TMVA::Experimental::Internal::RBatchLoader::GetTrainBatch |
( |
| ) |
|
|
inline |
Loading the training batch from the queue.
- Returns
- Training batch
Definition at line 120 of file RBatchLoader.hxx.
◆ GetValidationBatch()
| RFlat2DMatrix TMVA::Experimental::Internal::RBatchLoader::GetValidationBatch |
( |
| ) |
|
|
inline |
Loading the validation batch from the queue.
- Returns
- Validation batch
Definition at line 136 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
| std::unique_ptr<RFlat2DMatrix> TMVA::Experimental::Internal::RBatchLoader::fCurrentBatch |
|
private |
◆ 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
| std::unique_ptr<RFlat2DMatrix> TMVA::Experimental::Internal::RBatchLoader::fPrimaryLeftoverTrainingBatch |
|
private |
◆ fPrimaryLeftoverValidationBatch
| std::unique_ptr<RFlat2DMatrix> TMVA::Experimental::Internal::RBatchLoader::fPrimaryLeftoverValidationBatch |
|
private |
◆ fSecondaryLeftoverTrainingBatch
| std::unique_ptr<RFlat2DMatrix> TMVA::Experimental::Internal::RBatchLoader::fSecondaryLeftoverTrainingBatch |
|
private |
◆ fSecondaryLeftoverValidationBatch
| std::unique_ptr<RFlat2DMatrix> TMVA::Experimental::Internal::RBatchLoader::fSecondaryLeftoverValidationBatch |
|
private |
◆ fTrainingBatchQueue
| std::queue<std::unique_ptr<RFlat2DMatrix> > TMVA::Experimental::Internal::RBatchLoader::fTrainingBatchQueue |
|
private |
◆ fValidationBatchQueue
| std::queue<std::unique_ptr<RFlat2DMatrix> > TMVA::Experimental::Internal::RBatchLoader::fValidationBatchQueue |
|
private |
The documentation for this class was generated from the following file: