From c84a9af6da85d7a06ff2d7bc01e258038c3f783f Mon Sep 17 00:00:00 2001 From: Matteo Bettini Date: Wed, 31 Jul 2024 11:44:54 +0200 Subject: [PATCH] amend --- benchmarl/algorithms/isac.py | 4 ++-- benchmarl/algorithms/maddpg.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmarl/algorithms/isac.py b/benchmarl/algorithms/isac.py index d96431d7..5407cc88 100644 --- a/benchmarl/algorithms/isac.py +++ b/benchmarl/algorithms/isac.py @@ -204,8 +204,8 @@ def _get_policy_for_loss( ), distribution_kwargs=( { - "min": self.action_spec[(group, "action")].space.low, - "max": self.action_spec[(group, "action")].space.high, + "low": self.action_spec[(group, "action")].space.low, + "high": self.action_spec[(group, "action")].space.high, } if self.use_tanh_normal else {} diff --git a/benchmarl/algorithms/maddpg.py b/benchmarl/algorithms/maddpg.py index 8967573b..b963bfb7 100644 --- a/benchmarl/algorithms/maddpg.py +++ b/benchmarl/algorithms/maddpg.py @@ -125,8 +125,8 @@ def _get_policy_for_loss( distribution_class=TanhDelta if self.use_tanh_mapping else Delta, distribution_kwargs=( { - "min": self.action_spec[(group, "action")].space.low, - "max": self.action_spec[(group, "action")].space.high, + "low": self.action_spec[(group, "action")].space.low, + "high": self.action_spec[(group, "action")].space.high, } if self.use_tanh_mapping else {}