Skip to content

Get loadings factors from the LDA class #5210

Closed

Description

@JPFrancoia

For the class sklearn.decomposition.PCA, there is an attribute "explained_variance_ratio_ " which gives the percentages of the components.
In scientific publications, the percentages are often displayed along the axis, when the data are plotted.

Unfortunately, there isn't the same attribute for the sklearn.lda.LDA class, and I need them absolutely for a publication.

Is there a way to get them ?

Sincerely

Activity

  1. mblondel commented on Sep 14, 2015

    @mblondel
    Member

    Solved for the eigen solver in #5216 but still need to be implemented for the SVD solver.

  2. amueller commented on May 22, 2018

    @amueller
    Member

    usage question and it's possible with some solvers, though there's issues, see #9107 and #9400

  3. JPFrancoia commented on May 22, 2018

    @JPFrancoia
    ContributorAuthor

    Yeah sorry this issue should have been closed ages ago. @mblondel , it's been implemented for the SVD solver in the mean time.

    @amueller : I think #9400 is a non-issue. I'll look into #9107

  4. amueller commented on May 24, 2018

    @amueller
    Member

    @JPFrancoia thanks for your help in investigating the other issues. And I really don't expect you to notice that your issue has been resolved (if neither mblondel nor jnothman nor me have lol)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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