Definition at line 24 of file RBatchGenerator.hxx.
Public Member Functions | |
| RBatchGenerator (const std::string &treeName, const std::string &fileName, const std::size_t chunkSize, const std::size_t batchSize, const std::vector< std::string > &cols, const std::string &filters="", const std::vector< std::size_t > &vecSizes={}, const float vecPadding=0.0, const float validationSplit=0.0, const std::size_t maxChunks=0, const std::size_t numColumns=0, bool shuffle=true) | |
| ~RBatchGenerator () | |
| void | Activate () |
| Activate the loading process by starting the batchloader, and spawning the loading thread. | |
| void | CreateBatches (std::size_t currentChunk, std::size_t processedEvents) |
| Create batches for the current_chunk. | |
| void | createIdxs (std::size_t processedEvents) |
| plit the events of the current chunk into validation and training events | |
| void | DeActivate () |
| De-activate the loading process by deactivating the batchgenerator and joining the loading thread. | |
| const TMVA::Experimental::RTensor< float > & | GetTrainBatch () |
| Returns the next batch of training data if available. | |
| const TMVA::Experimental::RTensor< float > & | GetValidationBatch () |
| Returns the next batch of validation data if available. | |
| bool | HasTrainData () |
| bool | HasValidationData () |
| bool | IsActive () |
| void | LoadChunks () |
| void | StartValidation () |
Private Attributes | |
| std::unique_ptr< TMVA::Experimental::Internal::RBatchLoader > | fBatchLoader |
| std::size_t | fBatchSize |
| std::unique_ptr< TMVA::Experimental::Internal::RChunkLoader< Args... > > | fChunkLoader |
| std::size_t | fChunkSize |
| std::unique_ptr< TMVA::Experimental::RTensor< float > > | fChunkTensor |
| std::vector< std::string > | fCols |
| std::unique_ptr< TMVA::Experimental::RTensor< float > > | fCurrentBatch |
| std::size_t | fCurrentRow = 0 |
| std::string | fFileName |
| std::string | fFilters |
| bool | fIsActive = false |
| std::mutex | fIsActiveLock |
| std::unique_ptr< std::thread > | fLoadingThread |
| std::size_t | fMaxBatches |
| std::size_t | fMaxChunks |
| std::size_t | fNumColumns |
| std::size_t | fNumEntries |
| TMVA::RandomGenerator< TRandom3 > | fRng = TMVA::RandomGenerator<TRandom3>(0) |
| bool | fShuffle = true |
| std::vector< std::vector< std::size_t > > | fTrainingIdxs |
| std::string | fTreeName |
| bool | fUseWholeFile = true |
| std::vector< std::vector< std::size_t > > | fValidationIdxs |
| float | fValidationSplit |
| float | fVecPadding |
| std::vector< std::size_t > | fVecSizes |
#include <TMVA/RBatchGenerator.hxx>
|
inline |
Definition at line 67 of file RBatchGenerator.hxx.
|
inline |
Definition at line 103 of file RBatchGenerator.hxx.
|
inline |
Activate the loading process by starting the batchloader, and spawning the loading thread.
Definition at line 125 of file RBatchGenerator.hxx.
|
inline |
Create batches for the current_chunk.
| currentChunk | |
| processedEvents |
Definition at line 194 of file RBatchGenerator.hxx.
|
inline |
plit the events of the current chunk into validation and training events
| processedEvents |
Definition at line 210 of file RBatchGenerator.hxx.
|
inline |
De-activate the loading process by deactivating the batchgenerator and joining the loading thread.
Definition at line 107 of file RBatchGenerator.hxx.
|
inline |
Returns the next batch of training data if available.
Returns empty RTensor otherwise.
Definition at line 143 of file RBatchGenerator.hxx.
|
inline |
Returns the next batch of validation data if available.
Returns empty RTensor otherwise.
Definition at line 152 of file RBatchGenerator.hxx.
|
inline |
Definition at line 158 of file RBatchGenerator.hxx.
|
inline |
Definition at line 160 of file RBatchGenerator.hxx.
|
inline |
Definition at line 232 of file RBatchGenerator.hxx.
|
inline |
Definition at line 162 of file RBatchGenerator.hxx.
|
inline |
Definition at line 231 of file RBatchGenerator.hxx.
|
private |
Definition at line 45 of file RBatchGenerator.hxx.
|
private |
Definition at line 36 of file RBatchGenerator.hxx.
|
private |
Definition at line 44 of file RBatchGenerator.hxx.
|
private |
Definition at line 34 of file RBatchGenerator.hxx.
|
private |
Definition at line 51 of file RBatchGenerator.hxx.
|
private |
Definition at line 31 of file RBatchGenerator.hxx.
|
private |
Definition at line 52 of file RBatchGenerator.hxx.
|
private |
Definition at line 40 of file RBatchGenerator.hxx.
|
private |
Definition at line 28 of file RBatchGenerator.hxx.
|
private |
Definition at line 32 of file RBatchGenerator.hxx.
|
private |
Definition at line 61 of file RBatchGenerator.hxx.
|
private |
Definition at line 58 of file RBatchGenerator.hxx.
|
private |
Definition at line 47 of file RBatchGenerator.hxx.
|
private |
Definition at line 37 of file RBatchGenerator.hxx.
|
private |
Definition at line 35 of file RBatchGenerator.hxx.
|
private |
Definition at line 38 of file RBatchGenerator.hxx.
|
private |
Definition at line 39 of file RBatchGenerator.hxx.
|
private |
Definition at line 26 of file RBatchGenerator.hxx.
|
private |
Definition at line 60 of file RBatchGenerator.hxx.
|
private |
Definition at line 54 of file RBatchGenerator.hxx.
|
private |
Definition at line 29 of file RBatchGenerator.hxx.
|
private |
Definition at line 49 of file RBatchGenerator.hxx.
|
private |
Definition at line 55 of file RBatchGenerator.hxx.
|
private |
Definition at line 42 of file RBatchGenerator.hxx.
|
private |
Definition at line 64 of file RBatchGenerator.hxx.
|
private |
Definition at line 63 of file RBatchGenerator.hxx.