pick_batch_sizes function

Picking optimal batch size values

Picking optimal batch size values

Suggest an optimal batch size value for use in map_overlapping_batches

pick_batch_sizes(input.seq, size = 50, overlap = 15, around = 5)

Arguments

  • input.seq: an object of class sequence.
  • size: The center size around which an optimum is to be searched
  • overlap: The desired overlap between batches
  • around: The range around the center which is maximally allowed to be searched.

Returns

An integer value for the size which most evenly divides batches. In case of ties, bigger batch sizes are preferred.

Examples

LG <- structure(list(seq.num = seq(1,800)), class = "sequence") batchsize <- pick_batch_sizes(LG, 50, 19)

See Also

map_overlapping_batches

Author(s)

Bastian Schiffthaler, bastian.schiffthaler@umu.se

  • Maintainer: Cristiane Taniguti
  • License: GPL-3
  • Last published: 2025-01-10