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

Module: tf_agents.trajectories.trajectory

View source on GitHub

Trajectory containing time_step transition information.

Classes

class Trajectory: A tuple that represents a trajectory.

Functions

boundary(...): Create a Trajectory transitioning between StepTypes LAST and FIRST.

experience_to_transitions(...): Break experience to transitions.

first(...): Create a Trajectory transitioning between StepTypes FIRST and MID.

from_episode(...): Create a Trajectory from tensors representing a single episode.

from_transition(...): Returns a Trajectory given transitions.

last(...): Create a Trajectory transitioning between StepTypes MID and LAST.

mid(...): Create a Trajectory transitioning between StepTypes MID and MID.

single_step(...): Create a Trajectory transitioning between StepTypes FIRST and LAST.

to_transition(...): Create a transition from a trajectory or two adjacent trajectories.

to_transition_spec(...): Create a transition spec from a trajectory spec.