Skip to content

Commit

Permalink
fix evaluate
Browse files Browse the repository at this point in the history
  • Loading branch information
ppdebreuck committed Nov 13, 2021
1 parent 938a3de commit 82e83f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modnet/models/vanilla.py
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ def evaluate(self, test_data: MODData) -> pd.DataFrame:
x = self._scaler.transform(x)
x = np.nan_to_num(x, nan=-1)

y_pred = self.model.predict(x)
y_pred = np.array(self.model.predict(x))
if len(y_pred.shape) == 2:
y_pred = np.array([y_pred])
score = []
Expand Down

0 comments on commit 82e83f9

Please sign in to comment.