Skip to content

Commit

Permalink
add more high and low with action_bin
Browse files Browse the repository at this point in the history
  • Loading branch information
rongkunxue committed Apr 15, 2024
1 parent 33554e7 commit 81bea50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ding/policy/qtransformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,9 +273,9 @@ def _init_learn(self) -> None:
update_type="momentum",
update_kwargs={"theta": self._cfg.learn.target_theta},
)
self._low = np.array([-1, -1, -1])
self._high = np.array([1, 1, 1])
self._action_bin = self._cfg.model.action_bins
self._low = np.full(self._cfg.model.num_actions, -1)
self._high = np.full(self._cfg.model.num_actions, 1)
self._action_values = np.array(
[
np.linspace(min_val, max_val, self._action_bin)
Expand Down

0 comments on commit 81bea50

Please sign in to comment.