Skip to content

Commit

Permalink
more reshape call into the more generic method
Browse files Browse the repository at this point in the history
  • Loading branch information
foolnotion committed Apr 4, 2024
1 parent 0c1e9c9 commit 7e485b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyoperon/sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def evaluate_model(self, model, X):
X = check_array(X, accept_sparse=False)
ds = op.Dataset(X)
rg = op.Range(0, ds.Rows)
return op.Evaluate(model, ds, rg)
return op.Evaluate(model, ds, rg).reshape(-1,)


def predict(self, X):
Expand All @@ -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,)
return self.evaluate_model(self.model_, X)

0 comments on commit 7e485b4

Please sign in to comment.