In this class, the processes of loading chunks (see RChunkLoader) and creating batches from those chunks (see RBatchLoader) are combined, allowing batches from the training and validation sets to be loaded directly from a dataset in an RDataFrame.
Definition at line 51 of file RBatchGenerator.hxx.
Public Member Functions | |
| RBatchGenerator (const std::vector< ROOT::RDF::RNode > &rdfs, const std::size_t chunkSize, const std::size_t blockSize, const std::size_t batchSize, const std::vector< std::string > &cols, const std::vector< std::size_t > &vecSizes={}, const float vecPadding=0.0, const float validationSplit=0.0, const std::size_t maxChunks=0, bool shuffle=true, bool dropRemainder=true, const std::size_t setSeed=0, bool loadEager=false, std::string sampleType="", float sampleRatio=1.0, bool replacement=false) | |
| ~RBatchGenerator () | |
| void | Activate () |
| Activate the loading process by starting the batchloader, and spawning the loading thread. | |
| void | ActivateEpoch () |
| void | ActivateTrainingEpoch () |
| void | ActivateValidationEpoch () |
| void | CreateTrainBatches () |
| Create training batches by first loading a chunk (see RChunkLoader) and split it into batches (see RBatchLoader) | |
| void | CreateValidationBatches () |
| Creates validation batches by first loading a chunk (see RChunkLoader), and then split it into batches (see RBatchLoader) | |
| void | DeActivate () |
| void | DeActivateEpoch () |
| void | DeActivateTrainingEpoch () |
| void | DeActivateValidationEpoch () |
| RFlat2DMatrix | GetTrainBatch () |
| Loads a training batch from the queue. | |
| RFlat2DMatrix | GetValidationBatch () |
| Loads a validation batch from the queue. | |
| bool | IsActive () |
| std::size_t | NumberOfTrainingBatches () |
| std::size_t | NumberOfValidationBatches () |
| bool | TrainingIsActive () |
| std::size_t | TrainRemainderRows () |
| std::size_t | ValidationRemainderRows () |
#include <ROOT/ML/RBatchGenerator.hxx>
|
inline |
Definition at line 118 of file RBatchGenerator.hxx.
|
inline |
Definition at line 195 of file RBatchGenerator.hxx.
|
inline |
Activate the loading process by starting the batchloader, and spawning the loading thread.
Definition at line 216 of file RBatchGenerator.hxx.
|
inline |
Definition at line 231 of file RBatchGenerator.hxx.
|
inline |
Definition at line 235 of file RBatchGenerator.hxx.
|
inline |
Definition at line 239 of file RBatchGenerator.hxx.
|
inline |
Create training batches by first loading a chunk (see RChunkLoader) and split it into batches (see RBatchLoader)
Definition at line 245 of file RBatchGenerator.hxx.
|
inline |
Creates validation batches by first loading a chunk (see RChunkLoader), and then split it into batches (see RBatchLoader)
Definition at line 271 of file RBatchGenerator.hxx.
|
inline |
Definition at line 197 of file RBatchGenerator.hxx.
|
inline |
Definition at line 233 of file RBatchGenerator.hxx.
|
inline |
Definition at line 237 of file RBatchGenerator.hxx.
|
inline |
Definition at line 241 of file RBatchGenerator.hxx.
|
inline |
Loads a training batch from the queue.
Definition at line 296 of file RBatchGenerator.hxx.
|
inline |
Loads a validation batch from the queue.
Definition at line 314 of file RBatchGenerator.hxx.
|
inline |
Definition at line 337 of file RBatchGenerator.hxx.
|
inline |
Definition at line 331 of file RBatchGenerator.hxx.
|
inline |
Definition at line 332 of file RBatchGenerator.hxx.
|
inline |
Definition at line 338 of file RBatchGenerator.hxx.
|
inline |
Definition at line 334 of file RBatchGenerator.hxx.
|
inline |
Definition at line 335 of file RBatchGenerator.hxx.
|
private |
Definition at line 72 of file RBatchGenerator.hxx.
|
private |
Definition at line 57 of file RBatchGenerator.hxx.
|
private |
Definition at line 58 of file RBatchGenerator.hxx.
|
private |
Definition at line 64 of file RBatchGenerator.hxx.
|
private |
Definition at line 55 of file RBatchGenerator.hxx.
|
private |
Definition at line 53 of file RBatchGenerator.hxx.
|
private |
Definition at line 63 of file RBatchGenerator.hxx.
|
private |
Definition at line 81 of file RBatchGenerator.hxx.
|
private |
Definition at line 91 of file RBatchGenerator.hxx.
|
private |
Definition at line 88 of file RBatchGenerator.hxx.
|
private |
Definition at line 79 of file RBatchGenerator.hxx.
|
private |
Definition at line 83 of file RBatchGenerator.hxx.
|
private |
Definition at line 74 of file RBatchGenerator.hxx.
|
private |
Definition at line 56 of file RBatchGenerator.hxx.
|
private |
Definition at line 98 of file RBatchGenerator.hxx.
|
private |
Definition at line 95 of file RBatchGenerator.hxx.
|
private |
Definition at line 99 of file RBatchGenerator.hxx.
|
private |
Definition at line 96 of file RBatchGenerator.hxx.
|
private |
Definition at line 86 of file RBatchGenerator.hxx.
|
private |
Definition at line 108 of file RBatchGenerator.hxx.
|
private |
Definition at line 109 of file RBatchGenerator.hxx.
|
private |
Definition at line 85 of file RBatchGenerator.hxx.
|
private |
Definition at line 84 of file RBatchGenerator.hxx.
|
private |
Definition at line 59 of file RBatchGenerator.hxx.
|
private |
Definition at line 82 of file RBatchGenerator.hxx.
|
private |
Definition at line 70 of file RBatchGenerator.hxx.
|
private |
Definition at line 112 of file RBatchGenerator.hxx.
|
private |
Definition at line 65 of file RBatchGenerator.hxx.
|
private |
Definition at line 76 of file RBatchGenerator.hxx.
|
private |
Definition at line 105 of file RBatchGenerator.hxx.
|
private |
Definition at line 102 of file RBatchGenerator.hxx.
|
private |
Definition at line 92 of file RBatchGenerator.hxx.
|
private |
Definition at line 67 of file RBatchGenerator.hxx.
|
private |
Definition at line 111 of file RBatchGenerator.hxx.
|
private |
Definition at line 89 of file RBatchGenerator.hxx.
|
private |
Definition at line 66 of file RBatchGenerator.hxx.
|
private |
Definition at line 77 of file RBatchGenerator.hxx.
|
private |
Definition at line 115 of file RBatchGenerator.hxx.
|
private |
Definition at line 106 of file RBatchGenerator.hxx.
|
private |
Definition at line 103 of file RBatchGenerator.hxx.
|
private |
Definition at line 93 of file RBatchGenerator.hxx.
|
private |
Definition at line 68 of file RBatchGenerator.hxx.
|
private |
Definition at line 61 of file RBatchGenerator.hxx.
|
private |
Definition at line 114 of file RBatchGenerator.hxx.
|
private |
Definition at line 54 of file RBatchGenerator.hxx.