mirror of
https://github.com/saymrwulf/stable-baselines3.git
synced 2026-09-15 22:10:25 +00:00
Removing dead code for handling time limits (#831)
* Removing dead code for handling time limits (see #829) * Mentionning remove_time_limit_termination in the changelog * Update changelog.rst Co-authored-by: Antonin RAFFIN <antonin.raffin@ensta.org>
This commit is contained in:
parent
009bb0549a
commit
00ac43b0a9
2 changed files with 2 additions and 7 deletions
|
|
@ -40,6 +40,7 @@ Deprecations:
|
||||||
Others:
|
Others:
|
||||||
^^^^^^^
|
^^^^^^^
|
||||||
- Fixed pytest warnings
|
- Fixed pytest warnings
|
||||||
|
- Removed parameter ``remove_time_limit_termination`` in off policy algorithms since it was dead code (@Gregwar)
|
||||||
|
|
||||||
Documentation:
|
Documentation:
|
||||||
^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^
|
||||||
|
|
@ -928,3 +929,4 @@ And all the contributors:
|
||||||
@wkirgsn @AechPro @CUN-bjy @batu @IljaAvadiev @timokau @kachayev @cleversonahum
|
@wkirgsn @AechPro @CUN-bjy @batu @IljaAvadiev @timokau @kachayev @cleversonahum
|
||||||
@eleurent @ac-93 @cove9988 @theDebugger811 @hsuehch @Demetrio92 @thomasgubler @IperGiove @ScheiklP
|
@eleurent @ac-93 @cove9988 @theDebugger811 @hsuehch @Demetrio92 @thomasgubler @IperGiove @ScheiklP
|
||||||
@simoninithomas @armandpl @manuel-delverme @Gautam-J @gianlucadecola @buoyancy99 @caburu @xy9485
|
@simoninithomas @armandpl @manuel-delverme @Gautam-J @gianlucadecola @buoyancy99 @caburu @xy9485
|
||||||
|
@Gregwar
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,6 @@ class OffPolicyAlgorithm(BaseAlgorithm):
|
||||||
:param use_sde_at_warmup: Whether to use gSDE instead of uniform sampling
|
:param use_sde_at_warmup: Whether to use gSDE instead of uniform sampling
|
||||||
during the warm up phase (before learning starts)
|
during the warm up phase (before learning starts)
|
||||||
:param sde_support: Whether the model support gSDE or not
|
:param sde_support: Whether the model support gSDE or not
|
||||||
:param remove_time_limit_termination: Remove terminations (dones) that are due to time limit.
|
|
||||||
See https://github.com/hill-a/stable-baselines/issues/863
|
|
||||||
:param supported_action_spaces: The action spaces supported by the algorithm.
|
:param supported_action_spaces: The action spaces supported by the algorithm.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
@ -103,7 +101,6 @@ class OffPolicyAlgorithm(BaseAlgorithm):
|
||||||
sde_sample_freq: int = -1,
|
sde_sample_freq: int = -1,
|
||||||
use_sde_at_warmup: bool = False,
|
use_sde_at_warmup: bool = False,
|
||||||
sde_support: bool = True,
|
sde_support: bool = True,
|
||||||
remove_time_limit_termination: bool = False,
|
|
||||||
supported_action_spaces: Optional[Tuple[gym.spaces.Space, ...]] = None,
|
supported_action_spaces: Optional[Tuple[gym.spaces.Space, ...]] = None,
|
||||||
):
|
):
|
||||||
|
|
||||||
|
|
@ -138,10 +135,6 @@ class OffPolicyAlgorithm(BaseAlgorithm):
|
||||||
self.replay_buffer_kwargs = replay_buffer_kwargs
|
self.replay_buffer_kwargs = replay_buffer_kwargs
|
||||||
self._episode_storage = None
|
self._episode_storage = None
|
||||||
|
|
||||||
# Remove terminations (dones) that are due to time limit
|
|
||||||
# see https://github.com/hill-a/stable-baselines/issues/863
|
|
||||||
self.remove_time_limit_termination = remove_time_limit_termination
|
|
||||||
|
|
||||||
# Save train freq parameter, will be converted later to TrainFreq object
|
# Save train freq parameter, will be converted later to TrainFreq object
|
||||||
self.train_freq = train_freq
|
self.train_freq = train_freq
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue