Module: tf_agents.trajectories.trajectory
Stay organized with collections
Save and categorize content based on your preferences.
Trajectory containing time_step transition information.
Classes
class Trajectory
: A tuple that represents a trajectory.
class Transition
: A tuple that represents a transition.
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_n_step_transition(...)
: Create an n-step transition from a trajectory with T=N + 1
frames.
to_transition(...)
: Create a transition from a trajectory or two adjacent trajectories.
to_transition_spec(...)
: Create a transition spec from a trajectory spec.
Other Members |
absolute_import
|
Instance of __future__._Feature
|
division
|
Instance of __future__._Feature
|
print_function
|
Instance of __future__._Feature
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-04-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# Module: tf_agents.trajectories.trajectory\n\n\u003cbr /\u003e\n\n|-----------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/trajectories/trajectory.py) |\n\nTrajectory containing time_step transition information.\n\nClasses\n-------\n\n[`class Trajectory`](../../tf_agents/trajectories/Trajectory): A tuple that represents a trajectory.\n\n[`class Transition`](../../tf_agents/trajectories/Transition): A tuple that represents a transition.\n\nFunctions\n---------\n\n[`boundary(...)`](../../tf_agents/trajectories/boundary): Create a Trajectory transitioning between StepTypes `LAST` and `FIRST`.\n\n[`experience_to_transitions(...)`](../../tf_agents/trajectories/trajectory/experience_to_transitions): Break experience to transitions.\n\n[`first(...)`](../../tf_agents/trajectories/first): Create a Trajectory transitioning between StepTypes `FIRST` and `MID`.\n\n[`from_episode(...)`](../../tf_agents/trajectories/trajectory/from_episode): Create a Trajectory from tensors representing a single episode.\n\n[`from_transition(...)`](../../tf_agents/trajectories/from_transition): Returns a `Trajectory` given transitions.\n\n[`last(...)`](../../tf_agents/trajectories/last): Create a Trajectory transitioning between StepTypes `MID` and `LAST`.\n\n[`mid(...)`](../../tf_agents/trajectories/mid): Create a Trajectory transitioning between StepTypes `MID` and `MID`.\n\n[`single_step(...)`](../../tf_agents/trajectories/single_step): Create a Trajectory transitioning between StepTypes `FIRST` and `LAST`.\n\n[`to_n_step_transition(...)`](../../tf_agents/trajectories/to_n_step_transition): Create an n-step transition from a trajectory with `T=N + 1` frames.\n\n[`to_transition(...)`](../../tf_agents/trajectories/to_transition): Create a transition from a trajectory or two adjacent trajectories.\n\n[`to_transition_spec(...)`](../../tf_agents/trajectories/to_transition_spec): Create a transition spec from a trajectory spec.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Other Members ------------- ||\n|-----------------|-----------------------------------|\n| absolute_import | Instance of `__future__._Feature` |\n| division | Instance of `__future__._Feature` |\n| print_function | Instance of `__future__._Feature` |\n\n\u003cbr /\u003e"]]