Skip to content

DOC Ensures that MultiTaskLassoCV passes numpydoc validation #21256

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
1 change: 0 additions & 1 deletion maint_tools/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
"LabelSpreading",
"LocallyLinearEmbedding",
"MultiTaskElasticNetCV",
"MultiTaskLassoCV",
"OrthogonalMatchingPursuitCV",
"PassiveAggressiveRegressor",
"SpectralBiclustering",
Expand Down
29 changes: 16 additions & 13 deletions sklearn/linear_model/_coordinate_descent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2996,6 +2996,22 @@ class MultiTaskLassoCV(RegressorMixin, LinearModelCV):

.. versionadded:: 1.0

See Also
--------
MultiTaskElasticNet : Multi-task ElasticNet model trained with L1/L2
mixed-norm as regularizer.
ElasticNetCV : Elastic net model with best model selection by
cross-validation.
MultiTaskElasticNetCV : Multi-task L1/L2 ElasticNet with built-in
cross-validation.

Notes
-----
The algorithm used to fit the model is coordinate descent.

To avoid unnecessary memory duplication the X and y arguments of the fit
method should be directly passed as Fortran-contiguous numpy arrays.

Examples
--------
>>> from sklearn.linear_model import MultiTaskLassoCV
Expand All @@ -3009,19 +3025,6 @@ class MultiTaskLassoCV(RegressorMixin, LinearModelCV):
0.5713...
>>> reg.predict(X[:1,])
array([[153.7971..., 94.9015...]])

See Also
--------
MultiTaskElasticNet
ElasticNetCV
MultiTaskElasticNetCV

Notes
-----
The algorithm used to fit the model is coordinate descent.

To avoid unnecessary memory duplication the X and y arguments of the fit
method should be directly passed as Fortran-contiguous numpy arrays.
"""

path = staticmethod(lasso_path)
Expand Down