Skip to content

Commit

Permalink
code format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
yawen-d committed Mar 29, 2022
1 parent 133fc6f commit 8ed787f
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 @@ -48,7 +48,7 @@ def initial_state(self) -> np.ndarray:
def reward(self, state: np.ndarray, action: int, new_state: np.ndarray) -> float:
"""Negative squared vertical distance from parabola."""
x, y, a, b, c = state
target_y = a * x ** 2 + b * x + c
target_y = a * x**2 + b * x + c
return (-1) * (y - target_y) ** 2

def transition(self, state: np.ndarray, action: int) -> np.ndarray:
Expand Down

0 comments on commit 8ed787f

Please sign in to comment.