Module: tf_agents.trajectories.time_step
Stay organized with collections
Save and categorize content based on your preferences.
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
.
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.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# Module: tf_agents.trajectories.time_step\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/agents/blob/v0.19.0/tf_agents/trajectories/time_step.py) |\n\nTimeStep representing a step in the environment.\n\nClasses\n-------\n\n[`class StepType`](../../tf_agents/trajectories/StepType): Defines the status of a `TimeStep` within a sequence.\n\n[`class TimeStep`](../../tf_agents/trajectories/TimeStep): Returned with every call to `step` and `reset` on an environment.\n\nFunctions\n---------\n\n[`restart(...)`](../../tf_agents/trajectories/restart): Returns a `TimeStep` with `step_type` set equal to [`StepType.FIRST`](../../tf_agents/trajectories/StepType#FIRST).\n\n[`termination(...)`](../../tf_agents/trajectories/termination): Returns a `TimeStep` with `step_type` set to [`StepType.LAST`](../../tf_agents/trajectories/StepType#LAST).\n\n[`time_step_spec(...)`](../../tf_agents/trajectories/time_step_spec): Returns a `TimeStep` spec given the observation_spec.\n\n[`transition(...)`](../../tf_agents/trajectories/transition): Returns a `TimeStep` with `step_type` set equal to [`StepType.MID`](../../tf_agents/trajectories/StepType#MID).\n\n[`truncation(...)`](../../tf_agents/trajectories/truncation): Returns a `TimeStep` with `step_type` set to [`StepType.LAST`](../../tf_agents/trajectories/StepType#LAST).\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"]]