From 45a1a3f25960464cd55da4391f4bbe4a7953b719 Mon Sep 17 00:00:00 2001 From: Dominik Jain Date: Thu, 14 Dec 2023 18:53:25 +0100 Subject: [PATCH] SamplingConfig: Change default of repeat_per_collect to 1 (safest option) --- tianshou/highlevel/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tianshou/highlevel/config.py b/tianshou/highlevel/config.py index 4f68fd8..80e0476 100644 --- a/tianshou/highlevel/config.py +++ b/tianshou/highlevel/config.py @@ -67,7 +67,7 @@ class SamplingConfig(ToStringMixin): collected during training. """ - repeat_per_collect: int | None = 10 + repeat_per_collect: int | None = 1 """ controls, within one gradient update step of an on-policy algorithm, the number of times an actual gradient update is applied using the full collected dataset, i.e. if the parameter is