Skip to content

Commit

Permalink
Give parabola finite action space (#55)
Browse files Browse the repository at this point in the history
* Give parabola finite action space

* Add whitespace around * sign
  • Loading branch information
dfilan authored Aug 5, 2022
1 parent a965478 commit f3a2404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/seals/diagnostics/parabola.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, x_step: float = 0.05, bounds: float = 5):

super().__init__(
state_space=spaces.Box(low=state_low, high=state_high),
action_space=spaces.Box(low=-np.inf, high=np.inf, shape=()),
action_space=spaces.Box(low=(-2) * bounds, high=2 * bounds, shape=()),
)

def terminal(self, state: int, n_actions_taken: int) -> bool:
Expand Down

0 comments on commit f3a2404

Please sign in to comment.