Closed mathurinm closed 3 years ago
I think I found it: in your implementation, there is no 1/2 in front of the quadratic datafitting term (so dividing alpha by 2 gives the same results as sklearn)
The formula I found in the doc does not have the 1 / n_samples scaling that seems to be used in the code.
I believe it would be helpful to have the formula used in practice included in the docstring of the GroupLasso
class
Thank you, I have added this to the documentation now!
I am having a hard time getting the same results as sklearn or other Lasso/GroupLasso solvers.
Running the following snippet, I get 0 coefficients for clf:
Is it normal ? Since alpha < alpha_max (= norm(X.T @ y, ord="inf") / len(y)), I would expect the results to be non-zero.
Writing the objective in the docstring as it is done e.g. in
sklearn.linear_model.Lasso
would help, what do you think ?