optimum | R Documentation |
Calculates the optimum values for number of batches or size of the batches. If you need to do several batches it can be better to distribute it evenly and add replicates.
optimum_batches(size_data, size_subset)
optimum_subset(size_data, batches)
sizes_batches(size_data, size_subset, batches)
size_data |
A numeric value of the number of samples to use. |
size_subset |
Numeric value of the number of sample per batch. |
batches |
A numeric value of the number of batches. |
optimum_batches
A numeric value with the number of batches to use.
optimum_subset
A numeric value with the maximum number of samples per batch of the data.
sizes_batches
A numeric vector with the number of samples in each batch.
size_data <- 50
size_batch <- 24
(batches <- optimum_batches(size_data, size_batch))
# So now the best number of samples for each batch is less than the available
(size <- optimum_subset(size_data, batches))
# The distribution of samples per batch
sizes_batches(size_data, size, batches)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.