diff --git a/api/env/index.html b/api/env/index.html index f1f20f8fa..b982a2ea4 100644 --- a/api/env/index.html +++ b/api/env/index.html @@ -2045,7 +2045,7 @@
__init__(self, env: Environment, reward_aggregator: Callable = <function sum at 0x7f2d8d729790>, discount_aggregator: Callable = <function amax at 0x7f2d8d729f70>)
+__init__(self, env: Environment, reward_aggregator: Callable = <function sum at 0x7fef1c65f790>, discount_aggregator: Callable = <function amax at 0x7fef1c65ff70>)
special
@@ -2337,14 +2337,14 @@ Callable
a function to aggregate all agents rewards into a single scalar value, e.g. sum.
<function sum at 0x7f2d8d729790>
<function sum at 0x7fef1c65f790>
discount_aggregator
Callable
a function to aggregate all agents discounts into a single scalar value, e.g. max.
<function amax at 0x7f2d8d729f70>
<function amax at 0x7fef1c65ff70>
__init__(self, env: Environment, next_obs_in_extras: bool = False)
+
+
+ special
+
+
+#Wrap an environment to automatically reset it when the episode terminates.
+ +Parameters:
+Name | +Type | +Description | +Default | +
---|---|---|---|
env |
+ Environment |
+ the environment to wrap. |
+ required | +
next_obs_in_extras |
+ bool |
+ whether to store the next observation in the extras of the +terminal timestep. This is useful for e.g. truncation. |
+ False |
+