Skip to content

Commit

Permalink
bugfix in metric score - parenthese was at wrong position
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusaka committed Nov 24, 2024
1 parent e3b0102 commit cae47e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pykoopman/koopman.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ def score(self, x, y=None, cast_as_real=True, metric=r2_score, **metric_kws):
)
else:
if cast_as_real:
return metric(y.real, self.predict(x).real, **metric_kws)
return metric(y.real, self.predict(x, **metric_kws).real)
else:
return metric(y, self.predict(x), **metric_kws)
return metric(y, self.predict(x, **metric_kws))

def _observable(self):
"""Returns the observable transformation."""
Expand Down

0 comments on commit cae47e9

Please sign in to comment.