TimeRange: Configuration for the range of Unix time to profile.

TimeRangeR Documentation

Configuration for the range of Unix time to profile.

Description

It returns the target time duration in dictionary format that you can pass to the :class:'~sagemaker.debugger.FrameworkProfile' class.

Methods

Public methods


Method new()

Set the start Unix time and duration. If the start Unix time is not specified, profile starting at step 0. If the duration is not specified, profile for 1 step.

Usage
TimeRange$new(start_unix_time = NULL, duration = NULL)
Arguments
start_unix_time

(int): The Unix time to start profiling.

duration

(float): The duration in seconds to profile.


Method to_json()

Convert the time range into a dictionary.

Usage
TimeRange$to_json()
Returns

dict: The time range as a dictionary.


Method format()

format class

Usage
TimeRange$format()
Arguments
...

(ignored).


Method clone()

The objects of this class are cloneable with this method.

Usage
TimeRange$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


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