Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c8c51ca

Browse filesBrowse files
authored
DOC Fix lars Xy shape (#25952)
1 parent a656a67 commit c8c51ca
Copy full SHA for c8c51ca

File tree

1 file changed

+4
-4
lines changed
Filter options

1 file changed

+4
-4
lines changed

‎sklearn/linear_model/_least_angle.py

Copy file name to clipboardExpand all lines: sklearn/linear_model/_least_angle.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def lars_path(
6969
y : None or array-like of shape (n_samples,)
7070
Input targets.
7171
72-
Xy : array-like of shape (n_samples,) or (n_samples, n_targets), \
72+
Xy : array-like of shape (n_features,) or (n_features, n_targets), \
7373
default=None
7474
`Xy = np.dot(X.T, y)` that can be precomputed. It is useful
7575
only when the Gram matrix is precomputed.
@@ -215,7 +215,7 @@ def lars_path_gram(
215215
216216
Parameters
217217
----------
218-
Xy : array-like of shape (n_samples,) or (n_samples, n_targets)
218+
Xy : array-like of shape (n_features,) or (n_features, n_targets)
219219
Xy = np.dot(X.T, y).
220220
221221
Gram : array-like of shape (n_features, n_features)
@@ -362,7 +362,7 @@ def _lars_path_solver(
362362
y : None or ndarray of shape (n_samples,)
363363
Input targets.
364364
365-
Xy : array-like of shape (n_samples,) or (n_samples, n_targets), \
365+
Xy : array-like of shape (n_features,) or (n_features, n_targets), \
366366
default=None
367367
`Xy = np.dot(X.T, y)` that can be precomputed. It is useful
368368
only when the Gram matrix is precomputed.
@@ -1110,7 +1110,7 @@ def fit(self, X, y, Xy=None):
11101110
y : array-like of shape (n_samples,) or (n_samples, n_targets)
11111111
Target values.
11121112
1113-
Xy : array-like of shape (n_samples,) or (n_samples, n_targets), \
1113+
Xy : array-like of shape (n_features,) or (n_features, n_targets), \
11141114
default=None
11151115
Xy = np.dot(X.T, y) that can be precomputed. It is useful
11161116
only when the Gram matrix is precomputed.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.