Skip to content

Conversation

@j-c-c
Copy link
Collaborator

@j-c-c j-c-c commented May 28, 2024

In a recent release sklearn altered the API of the PCA class methods _fit_full() and _fit_truncated(). Formerly, the namespace of the data was determined within these methods. Now, the namespace is determined in the method _fit() which calls the above methods and passes the namespace as an argument.

This API changed caused our subclass, ComplexPCA, of sklearn's PCA class to be broken.

In this PR I've made a similar change to our subclass ComplexPCA.

@j-c-c j-c-c added bug Something isn't working CI Continuous Integration extern Relating to external changes labels May 28, 2024
@j-c-c j-c-c self-assigned this May 28, 2024
@j-c-c j-c-c linked an issue May 28, 2024 that may be closed by this pull request
@j-c-c
Copy link
Collaborator Author

j-c-c commented May 28, 2024

Looks like sklearn v1.5.0 only supports python 3.9-3.12. So I'll revert the changes and pin to usable version of sklearn until we're ready to move our python window.

@garrettwrong
Copy link
Collaborator

I'm going to change this to "Ready for Review" just to kick off the next round of CI jobs.

@garrettwrong garrettwrong marked this pull request as ready for review May 30, 2024 15:37
Copy link
Collaborator

@garrettwrong garrettwrong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for covering this CI patch!

@j-c-c j-c-c merged commit bd52df2 into develop May 31, 2024
@j-c-c j-c-c deleted the sklearn_bug branch May 31, 2024 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CI Continuous Integration extern Relating to external changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sklearn release breaking API

3 participants