Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 23, 2024
1 parent d6e0eef commit 8b51fbc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pybop/costs/fitting_costs.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ def _evaluate(self, inputs: Inputs, grad=None):
[
np.sqrt(
np.mean(
np.abs(self._current_prediction[signal] - self._target[signal]) ** 2
np.abs(self._current_prediction[signal] - self._target[signal])
** 2
)
)
for signal in self.signal
Expand Down Expand Up @@ -137,7 +138,9 @@ def _evaluate(self, inputs: Inputs, grad=None):

e = np.asarray(
[
np.sum(np.abs(self._current_prediction[signal] - self._target[signal]) ** 2)
np.sum(
np.abs(self._current_prediction[signal] - self._target[signal]) ** 2
)
for signal in self.signal
]
)
Expand Down

0 comments on commit 8b51fbc

Please sign in to comment.