10000 fix lars Xy docs by adienes · Pull Request #25952 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

fix lars Xy docs #25952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions sklearn/linear_model/_least_angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def lars_path(
y : None or array-like of shape (n_samples,)
Input targets.

Xy : array-like of shape (n_samples,) or (n_samples, n_targets), \
Xy : array-like of shape (n_features,) or (n_features, n_targets), \
default=None
`Xy = np.dot(X.T, y)` that can be precomputed. It is useful
only when the Gram matrix is precomputed.
Expand Down Expand Up @@ -215,7 +215,7 @@ def lars_path_gram(

Parameters
----------
Xy : array-like of shape (n_samples,) or (n_samples, n_targets)
Xy : array-like of shape (n_features,) or (n_features, n_targets)
Xy = np.dot(X.T, y).

Gram : array-like of shape (n_features, n_features)
Expand Down Expand Up @@ -362,7 +362,7 @@ def _lars_path_solver(
y : None or ndarray of shape (n_samples,)
Input targets.

Xy : array-like of shape (n_samples,) or (n_samples, n_targets), \
Xy : array-like of shape (n_features,) or (n_features, n_targets), \
default=None
`Xy = np.dot(X.T, y)` that can be precomputed. It is useful
only when the Gram matrix is precomputed.
Expand Down Expand Up @@ -1110,7 +1110,7 @@ def fit(self, X, y, Xy=None):
y : array-like of shape (n_samples,) or (n_samples, n_targets)
Target values.

Xy : array-like of shape (n_samples,) or (n_samples, n_targets), \
Xy : array-like of shape (n_features,) or (n_features, n_targets), \
default=None
Xy = np.dot(X.T, y) that can be precomputed. It is useful
only when the Gram matrix is precomputed.
Expand Down
0