View source: R/approach_vaeac_torch_modules.R
paired_sampler | R Documentation |
A sampler used to samples the batches where each instances is sampled twice
paired_sampler(vaeac_dataset_object, shuffle = FALSE)
vaeac_dataset_object |
A |
shuffle |
Boolean. If |
A sampler object that allows for paired sampling by always including each observation from the
vaeac_dataset()
twice. A torch::sampler()
object can be used with torch::dataloader()
when creating
batches from a torch dataset torch::dataset()
. See https://rdrr.io/cran/torch/src/R/utils-data-sampler.R for
more information. This function does not use batch iterators, which might increase the speed.
Lars Henry Berge Olsen
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.