diff --git a/pysindy/pysindy.py b/pysindy/pysindy.py index 686a4a3f0..7f95aee6f 100644 --- a/pysindy/pysindy.py +++ b/pysindy/pysindy.py @@ -486,7 +486,7 @@ def score( x, x_dot = drop_nan_rows(x, x_dot) x_dot_predict = self.model.predict(x) - return metric(x_dot_predict, x_dot, **metric_kws) + return metric(x_dot, x_dot_predict, **metric_kws) def process_multiple_trajectories(self, x, t, x_dot, return_array=True): """