From cae47e9737d1437be25f8ebe6f9909add656f399 Mon Sep 17 00:00:00 2001 From: Julius Aka Date: Sun, 24 Nov 2024 17:34:19 +0100 Subject: [PATCH] bugfix in metric score - parenthese was at wrong position --- src/pykoopman/koopman.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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."""