8000 [MRG] fix docstring multitask (lasso, etc.) by josephsalmon · Pull Request #8473 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] fix docstring multitask (lasso, etc.) #8473

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 2, 2017
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: 6 additions & 2 deletions sklearn/linear_model/coordinate_descent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1611,7 +1611,8 @@ class MultiTaskElasticNet(Lasso):

coef_ : array, shape (n_tasks, n_features)
Parameter vector (W in the cost function formula). If a 1D y is \
passed in at fit (non multi-task usage), ``coef_`` is then a 1D array
passed in at fit (non multi-task usage), ``coef_`` is then a 1D array.
Note that ``coef_`` stores the transpose of ``W``, ``W.T``.

n_iter_ : int
number of iterations run by the coordinate descent solver to reach
Expand Down Expand Up @@ -1792,7 +1793,8 @@ class MultiTaskLasso(MultiTaskElasticNet):
Attributes
----------
coef_ : array, shape (n_tasks, n_features)
parameter vector (W in the cost function formula)
Parameter vector (W in the cost function formula).
Note that ``coef_`` stores the transpose of ``W``, ``W.T``.

intercept_ : array, shape (n_tasks,)
independent term in decision function.
Expand Down Expand Up @@ -1950,6 +1952,7 @@ class MultiTaskElasticNetCV(LinearModelCV, RegressorMixin):

coef_ : array, shape (n_tasks, n_features)
Parameter vector (W in the cost function formula).
Note that ``coef_`` stores the transpose of ``W``, ``W.T``.

alpha_ : float
The amount of penalization chosen by cross validation
Expand Down Expand Up @@ -2115,6 +2118,7 @@ class MultiTaskLassoCV(LinearModelCV, RegressorMixin):

coef_ : array, shape (n_tasks, n_features)
Parameter vector (W in the cost function formula).
Note that ``coef_`` stores the transpose of ``W``, ``W.T``.

alpha_ : float
The amount of penalization chosen by cross validation
Expand Down
0