Skip to content

Commit

Permalink
sklearn.py: fix bug in the shape of the returned prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Apr 4, 2024
1 parent d0d0271 commit 5a41ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyoperon/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -596,4 +596,4 @@ def predict(self, X):
Returns an array of ones.
"""
check_is_fitted(self)
return self.evaluate_model(self.model_, X).reshape(-1, 1)
return self.evaluate_model(self.model_, X).reshape(-1,)

0 comments on commit 5a41ebc

Please sign in to comment.