Learn R Programming

tfdatasets (version 1.5)

dataset_batch: Combines consecutive elements of this dataset into batches.

Description

Combines consecutive elements of this dataset into batches.

Usage

dataset_batch(dataset, batch_size)

Arguments

dataset

A dataset

batch_size

An integer, representing the number of consecutive elements of this dataset to combine in a single batch.

Value

A dataset

See Also

Other dataset methods: dataset_cache, dataset_concatenate, dataset_decode_delim, dataset_filter, dataset_interleave, dataset_map, dataset_padded_batch, dataset_prefetch, dataset_repeat, dataset_shuffle, dataset_skip, dataset_take