diff --git a/src/pykoopman/koopman.py b/src/pykoopman/koopman.py index 3aefe07..d70af2a 100644 --- a/src/pykoopman/koopman.py +++ b/src/pykoopman/koopman.py @@ -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."""