Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63cc0b6

Browse files
Update sklearn/covariance/_shrunk_covariance.py
Co-authored-by: Guillaume Lemaitre <[email protected]>
1 parent e3abc1e commit 63cc0b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sklearn/covariance/_shrunk_covariance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ def fit(self, X, y=None):
690690
"""
691691
self._validate_params()
692692

693-
X = self._validate_data(X)
693+
X = self._validate_data(X, ensure_2d=False)
694694
if X.ndim == 1:
695695
X = np.reshape(X, (1, -1))
696696
warnings.warn(

0 commit comments

Comments
 (0)