Skip to content

Commit 4139614

Browse files
committed
Update _sklearnadapter.py
1 parent 4018e99 commit 4139614

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/hyperactive/integrations/sklearn/_adapter/_sklearnadapter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ def _refit(self, X, y=None, **fit_params):
1818

1919
def _check_data(self, X, y):
2020
X, y = indexable(X, y)
21-
if y is not None:
22-
if y.ndim == 1:
23-
y = y.reshape(-1, 1)
21+
if X is not None:
22+
if X.ndim == 1:
23+
X = X.reshape(-1, 1)
2424
if hasattr(self, "_validate_data"):
2525
validate_data = self._validate_data
2626
else:

0 commit comments

Comments
 (0)