diff --git a/pybop/costs/fitting_costs.py b/pybop/costs/fitting_costs.py index 98079161..f40ab9e1 100644 --- a/pybop/costs/fitting_costs.py +++ b/pybop/costs/fitting_costs.py @@ -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 @@ -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 ] )