BatchStrategy: BatchStrategy class

BatchStrategyR Documentation

BatchStrategy class

Description

BatchStrategy class

BatchStrategy class

Methods

Public methods


Method new()

Create a Batch Strategy Instance

Usage
BatchStrategy$new(splitter)
Arguments
splitter

(sagemaker.local.data.Splitter): A Splitter to pre-process the data before batching.


Method pad()

Group together as many records as possible to fit in the specified size.

Usage
BatchStrategy$pad(file, size)
Arguments
file

(str): file path to read the records from.

size

(int): maximum size in MB that each group of records will be fitted to. passing 0 means unlimited size.

Returns

generator of records


Method clone()

The objects of this class are cloneable with this method.

Usage
BatchStrategy$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


DyfanJones/sagemaker-r-local documentation built on June 14, 2022, 10:32 p.m.