Skip to content

Commit

Permalink
patch: Multi output support for TrainOnlyTransformerMixin (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloLepelaars authored Sep 9, 2024
1 parent 236f491 commit 28f2600
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sklego/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def fit(self, X, y=None):
if y is None:
check_array(X, estimator=self)
else:
check_X_y(X, y, estimator=self)
check_X_y(X, y, estimator=self, multi_output=True)
self.X_hash_ = self._hash(X)
self.n_features_in_ = X.shape[1]
return self
Expand Down

0 comments on commit 28f2600

Please sign in to comment.