MultiRecordStrategy: Feed multiple records at a time for batch inference.

MultiRecordStrategyR Documentation

Feed multiple records at a time for batch inference.

Description

Will group up as many records as possible within the payload specified.

Super class

sagemaker.core::BatchStrategy -> MultiRecordStrategy

Methods

Public methods

Inherited methods

Method pad()

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

Usage
MultiRecordStrategy$pad(file, size = 6)
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
MultiRecordStrategy$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.