Skip to content

Commit

Permalink
DOC add attribute active_ to LarsCV (#17886)
Browse files Browse the repository at this point in the history
  • Loading branch information
marenwestermann committed Jul 21, 2020
1 parent d8ab62a commit ae0d535
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sklearn/linear_model/_least_angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ class Lars(MultiOutputMixin, RegressorMixin, LinearModel):
``n_alphas`` is either ``n_nonzero_coefs`` or ``n_features``, \
whichever is smaller.
active_ : list, length = n_alphas | list of n_targets such lists
active_ : list of length n_alphas or list of n_targets such lists
Indices of active variables at the end of the path.
coef_path_ : array-like of shape (n_features, n_alphas + 1) \
Expand Down Expand Up @@ -1075,7 +1075,7 @@ class LassoLars(Lars):
nodes in the path with correlation greater than ``alpha``, whichever \
is smaller.
active_ : list, length = n_alphas | list of n_targets such lists
active_ : list of length n_alphas or list of n_targets such lists
Indices of active variables at the end of the path.
coef_path_ : array-like of shape (n_features, n_alphas + 1) or list
Expand Down Expand Up @@ -1328,6 +1328,9 @@ class LarsCV(Lars):
Attributes
----------
active_ : list of length n_alphas or list of n_targets such lists
Indices of active variables at the end of the path.
coef_ : array-like of shape (n_features,)
parameter vector (w in the formulation formula)
Expand Down

0 comments on commit ae0d535

Please sign in to comment.