Skip to content

Commit

Permalink
Fix for issue #65
Browse files Browse the repository at this point in the history
Fix for sklearn when using a hold-out testing strategy. This bug was introduced with version 6.0.
  • Loading branch information
Nabeel committed Nov 7, 2019
1 parent 4239382 commit 6927566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/_sklearn.py
Original file line number Diff line number Diff line change
Expand Up @@ -719,7 +719,7 @@ def fit(self):
# Select the dataset for calculating importances
if self.model.validation == "hold-out":
X = self.X_test
y = self.y_test.values.ravel()
y = self.y_test # Already a numpy array after calculate_metrics
else:
X = self.X_train
y = self.y_train.values.ravel()
Expand Down

0 comments on commit 6927566

Please sign in to comment.