torch_brain.data.sampler#

See Sampling for further details.

RandomFixedWindowSampler

Samples fixed-length windows randomly, given intervals defined in the sampling_intervals parameter.

SequentialFixedWindowSampler

Samples fixed-length windows sequentially, always in the same order.

TrialSampler

Randomly samples a single trial interval from the given intervals.

DistributedEvaluationSamplerWrapper

Wraps a sampler to be used in a distributed evaluation setting.

DistributedStitchingFixedWindowSampler

A sampler designed specifically for evaluation that enables sliding window inference with prediction stitching across distributed processes.