grain.samplers.SequentialSampler#
- class grain.samplers.SequentialSampler(num_records, shard_options=NoSharding(shard_index=0, shard_count=1, drop_remainder=False), seed=None)#
Basic sampler implementation that provides records in order.
- Parameters:
num_records (int)
shard_options (ShardOptions)
seed (int | None)
- __init__(num_records, shard_options=NoSharding(shard_index=0, shard_count=1, drop_remainder=False), seed=None)#
- Parameters:
num_records (int)
shard_options (ShardOptions)
seed (int | None)
Methods
__init__
(num_records[, shard_options, seed])