sup3r.preprocessing.batch_handlers.factory.BatchHandlerFactory#
- BatchHandlerFactory(MainQueueClass, SamplerClass, ValQueueClass=None, name='BatchHandler')[source]#
BatchHandler factory. Can build handlers from different queue classes and sampler classes. For example, to build a standard
BatchHandleruseSingleBatchQueueandSampler. To build aDualBatchHandleruseDualBatchQueueandDualSampler. To build aBatchHandlerDCuse aBatchQueueDC,ValBatchQueueDCandSamplerDCNote
(1) BatchHandlers include a queue for training samples and a queue for validation samples. (2) There is no need to generate “Spatial” batch handlers. Using
Samplerobjects with a single time step in the sample shape will produce batches without a time dimension.