[scikit-learn] Finding the PC that captures a specific variable

Guillaume Lemaître g.lemaitre58 at gmail.com
Fri Jan 22 04:25:54 EST 2021


I am not really understanding the question, sorry.
Are you seeking for the `explained_variance_ratio_` attribute that give you
a relative value of the eigenvalues associated to the eigenvectors?

On Fri, 22 Jan 2021 at 10:16, Mahmood Naderan <mahmood.nt at gmail.com> wrote:

> Hi
> I have a question about PCA and that is, how we can determine, a
> variable, X,  is better captured by which factor (principal
> component)? For example, maybe one variable has low weight in the
> first PC but has a higher weight in the fifth PC.
>
> When I use the PCA from Scikit, I have to manually work with the PCs,
> therefore, I may miss the point that although a variable is weak in
> PC1-PC2 plot, it may be strong in PC4-PC5 plot.
>
> Any comment on that?
>
> Regards,
> Mahmood
> _______________________________________________
> scikit-learn mailing list
> scikit-learn at python.org
> https://mail.python.org/mailman/listinfo/scikit-learn
>


-- 
Guillaume Lemaitre
Scikit-learn @ Inria Foundation
https://glemaitre.github.io/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.python.org/pipermail/scikit-learn/attachments/20210122/e6722d5f/attachment.html>


More information about the scikit-learn mailing list