torch_brain.samplers#

See Data Sampling for further details.

RandomFixedWindowSampler

Samples fixed-length windows randomly from a collection of time intervals.

SequentialFixedWindowSampler

Samples fixed-length windows sequentially in a deterministic, reproducible order.

TrialSampler

Samples complete trial intervals without windowing.

DistributedEvaluationSamplerWrapper

Wraps any sampler for use in distributed evaluation without dropping samples.

DistributedStitchingFixedWindowSampler

Distributed sliding-window sampler that co-locates windows for prediction stitching.