Skip to content

[DOC] MultiTaskLasso : coef_ transpose? #8472

@josephsalmon

Description

@josephsalmon

Description

I believe there is an issue with the coef_ description. The method is presented as :
(1 / (2 * n_samples)) * ||Y - XW||^2_Fro + alpha * ||W||_21
but coef_ returns W.T, currently : W.shape= [n_features,n_tasks] but coef_.shape=[n_tasks,n_features], cf. coordinate_descent.py--L1612

Why not outputting W directly? Instead of transposing the output, at least the doc should be consistent with the current implementation.
I am sending a PR for the second solution.

@agramfort

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions