Fix #717: Corrected PCA sign flip and updated test compatibility for … #1158
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi @rasbt,
I've fixed issue #717 regarding the sign flip in plot_pca_correlation_graph. The correlation matrix now correctly aligns with feature variance.
Key Changes:
Logic: Inverted correlation signs to ensure consistent direction (e.g., positive correlations for Iris features).
Compatibility: Fixed a TypeError in test_pca_corr_graph.py related to Python 3.12 version comparison.
Formatting: Cleaned up both files with isort and flake8.
update: I've implemented the fix and ensured that my contributed files are properly formatted. However, the Linting CI is failing due to existing formatting issues in external files (adjust_text.py, association_rules.py, etc.) which seem to require a different version of black/isort than the one available in my environment. I've focused the changes on the PCA issue to keep the PR clean."