Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

Module: tf_agents.trajectories.time_step

View source on GitHub

TimeStep representing a step in the environment.

Classes

class StepType: Defines the status of a TimeStep within a sequence.

class TimeStep: Returned with every call to step and reset on an environment.

Functions

restart(...): Returns a TimeStep with step_type set equal to StepType.FIRST.

termination(...): Returns a TimeStep with step_type set to StepType.LAST.

time_step_spec(...): Returns a TimeStep spec given the observation_spec.

transition(...): Returns a TimeStep with step_type set equal to StepType.MID.

truncation(...): Returns a TimeStep with step_type set to StepType.LAST.