We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0efd08b commit ce03e54Copy full SHA for ce03e54
sklearn/linear_model/_coordinate_descent.py
@@ -977,6 +977,10 @@ class Lasso(ElasticNet):
977
coef_ : ndarray of shape (n_features,) or (n_targets, n_features)
978
parameter vector (w in the cost function formula)
979
980
+ dual_gap_ : float or ndarray of shape (n_targets,)
981
+ Given param alpha, the dual gaps at the end of the optimization,
982
+ same shape as each observation of y.
983
+
984
sparse_coef_ : sparse matrix of shape (n_features, 1) or \
985
(n_targets, n_features)
986
``sparse_coef_`` is a readonly property derived from ``coef_``
0 commit comments