Skip to content

Commit

Permalink
Fix bug in score function
Browse files Browse the repository at this point in the history
  • Loading branch information
briandesilva committed Jun 30, 2020
1 parent 749097f commit a5443a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pysindy/pysindy.py
Expand Up @@ -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):
"""
Expand Down

0 comments on commit a5443a5

Please sign in to comment.