Skip to content

Commit

Permalink
automatic detection of multioutput datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmenke committed Jan 14, 2020
1 parent 410d88c commit 3dd6475
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tpot/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1158,7 +1158,7 @@ def _check_dataset(self, features, target, sample_weight=None):

try:
if target is not None:
X, y = check_X_y(features, target, accept_sparse=True, dtype=None)
X, y = check_X_y(features, target, accept_sparse=True, dtype=None, multi_output=len(target.shape) > 1 and target.shape[1] > 1)
if self._imputed:
return X, y
else:
Expand Down

0 comments on commit 3dd6475

Please sign in to comment.