C1_W3_Assignment - compute_pca

Hi,

While grading compute_pca, only one test-case seems to be failing. But I can see the magnitudes are correct, only a couple of signs are different:

In the assignment notebook also, I have the exact same test-case failure:

I have de-meaned X wrt each row, and without magnitude scaling with std dev.

I have also tried with SVD decomposition and using XU formula. Still seem to be getting the same issue.

Hi @poushali

Aren’t you by chance using UPLO="U" argument for linalg.eigh function?

No, I’m keeping the default for UPLO which is ‘L’

Hey @poushali,
Are you still facing this issue? If yes, then please DM me your implementation for the compute_pca function, so that we can try to figure out the issue.

Cheers,
Elemento