Definition at line 33 of file RBatchLoader.hxx.
|
| RBatchLoader (const TMVA::Experimental::RTensor< float > &chunkTensor, const std::size_t batchSize, const std::size_t numColumns, const std::size_t maxBatches) |
|
| ~RBatchLoader () |
|
void | Activate () |
| Activate the batchloader so it will accept chunks to batch.
|
|
std::unique_ptr< TMVA::Experimental::RTensor< float > > | CreateBatch (const TMVA::Experimental::RTensor< float > &chunkTensor, std::span< const std::size_t > idxs, std::size_t batchSize) |
|
std::unique_ptr< TMVA::Experimental::RTensor< float > > | CreateFirstBatch (const TMVA::Experimental::RTensor< float > &remainderTensor, std::size_t remainderTensorRow, std::span< const std::size_t > eventIndices) |
|
void | CreateTrainingBatches (const std::vector< std::size_t > &eventIndices) |
| Create training batches from the given chunk of data based on the given event indices Batches are added to the training queue of batches.
|
|
void | CreateValidationBatches (const std::vector< std::size_t > &eventIndices) |
| Create validation batches from the given chunk based on the given event indices Batches are added to the vector of validation batches.
|
|
void | DeActivate () |
| DeActivate the batchloader.
|
|
const TMVA::Experimental::RTensor< float > & | GetTrainBatch () |
| Return a batch of data as a unique pointer.
|
|
const TMVA::Experimental::RTensor< float > & | GetValidationBatch () |
| Returns a batch of data for validation The owner of this batch has to be with the RBatchLoader.
|
|
void | LastBatches () |
|
void | SaveRemainingData (TMVA::Experimental::RTensor< float > &remainderTensor, const std::size_t remainderTensorRow, const std::vector< std::size_t > eventIndices, const std::size_t start=0) |
| save to remaining data when the whole chunk has to be saved
|
|
#include <TMVA/BatchGenerator/RBatchLoader.hxx>
◆ RBatchLoader()
TMVA::Experimental::Internal::RBatchLoader::RBatchLoader |
( |
const TMVA::Experimental::RTensor< float > & |
chunkTensor, |
|
|
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 108 of file RBatchLoader.hxx.
◆ CreateBatch()
◆ CreateFirstBatch()
◆ CreateTrainingBatches()
void TMVA::Experimental::Internal::RBatchLoader::CreateTrainingBatches |
( |
const std::vector< std::size_t > & |
eventIndices | ) |
|
|
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.
- Parameters
-
Definition at line 186 of file RBatchLoader.hxx.
◆ CreateValidationBatches()
void TMVA::Experimental::Internal::RBatchLoader::CreateValidationBatches |
( |
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 234 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 122 of file RBatchLoader.hxx.
◆ GetTrainBatch()
Return a batch of data as a unique pointer.
After the batch has been processed, it should be destroyed.
- Returns
- Training batch
Definition at line 72 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 94 of file RBatchLoader.hxx.
◆ LastBatches()
void TMVA::Experimental::Internal::RBatchLoader::LastBatches |
( |
| ) |
|
|
inline |
◆ SaveRemainingData()
void TMVA::Experimental::Internal::RBatchLoader::SaveRemainingData |
( |
TMVA::Experimental::RTensor< float > & |
remainderTensor, |
|
|
const std::size_t |
remainderTensorRow, |
|
|
const std::vector< std::size_t > |
eventIndices, |
|
|
const std::size_t |
start = 0 |
|
) |
| |
|
inline |
save to remaining data when the whole chunk has to be saved
- Parameters
-
chunkTensor | |
remainderTensor | |
remainderTensorRow | |
eventIndices | |
Definition at line 172 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 |
◆ fChunkTensor
◆ fCurrentBatch
◆ 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 |
◆ fTrainingBatchQueue
◆ fTrainingRemainder
◆ fTrainingRemainderRow
std::size_t TMVA::Experimental::Internal::RBatchLoader::fTrainingRemainderRow = 0 |
|
private |
◆ fValidationBatchQueue
◆ fValidationRemainder
◆ fValidationRemainderRow
std::size_t TMVA::Experimental::Internal::RBatchLoader::fValidationRemainderRow = 0 |
|
private |
The documentation for this class was generated from the following file: