SequentialSampler(duration, *ops, **kwargs)¶
Sample patches in sequential (temporal) order
- duration : int > 0
the duration (in frames) of each sample
- stride : int > 0
The number of frames to advance between samples. By default, matches duration so there is no overlap.
- ops : array of pumpp.feature.FeatureExtractor or pumpp.task.BaseTaskTransformer
The operators to include when sampling data.
- random_state : None, int, or np.random.RandomState
If int, random_state is the seed used by the random number generator;
If RandomState instance, random_state is the random number generator;
If None, the random number generator is the RandomState instance
__init__(duration, *ops, **kwargs)¶
Initialize self. See help(type(self)) for accurate signature.
__init__(duration, *ops, **kwargs)
Add an operator to the Slicer
Crop a data dictionary down to its common time
Compute the valid data duration of a dict
Generate patch start indices
Sample a patch from the data object