Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding PCA correlation circle graph #544

Merged

Conversation

Gabriel-Azevedo-Ferreira
Copy link
Contributor

Description

Adding a function to enable the plotting of PCA correlation circles, similarly to what is done by factomineR in R.

Related issues or pull requests

Implements the feature proposed in #543 (#543)

Pull Request Checklist

  • [DONE] Added a note about the modification or contribution to the ./docs/sources/CHANGELOG.md file (if applicable)
  • [DONE ] Added appropriate unit test functions in the ./mlxtend/*/tests directories (if applicable)
  • [DONE] Modify documentation in the corresponding Jupyter Notebook under mlxtend/docs/sources/ (if applicable)
  • [DONE] Ran nosetests ./mlxtend -sv and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g., nosetests ./mlxtend/classifier/tests/test_stacking_cv_classifier.py -sv)
  • [DONE] Checked for style issues by running flake8 ./mlxtend

Copy link
Owner

@rasbt rasbt left a comment

Choose a reason for hiding this comment

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

Just had a look at the good, which looks great so far. Here are just a few minor issues:

docs/sources/CHANGELOG.md Outdated Show resolved Hide resolved
ci/.travis_install.sh Outdated Show resolved Hide resolved
mlxtend/plotting/__init__.py Outdated Show resolved Hide resolved
mlxtend/plotting/corr_circle_pca.py Outdated Show resolved Hide resolved
mlxtend/plotting/corr_circle_pca.py Outdated Show resolved Hide resolved
mlxtend/plotting/corr_circle_pca.py Outdated Show resolved Hide resolved
@pep8speaks
Copy link

pep8speaks commented May 28, 2019

Hello @Gabriel-Azevedo-Ferreira! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2019-05-29 02:19:11 UTC

@rasbt
Copy link
Owner

rasbt commented May 28, 2019

I think the failing unit tests could be because a new scikit-learn version was just recently uploaded to conda ... I will change the travis tests (here) to test on 0.20 and then carefully go through the 0.21 changes later

@rasbt
Copy link
Owner

rasbt commented May 28, 2019

There were some odd things with the unit tests regarding nosetests; I think it's easier to get this all to work here instead of having to rebase after I do it in master. I switched to pytest now which doesn't seem to have issues with regard to the latest changes in sklearn for some of the things nosetests complained about.

@coveralls
Copy link

coveralls commented May 28, 2019

Coverage Status

Coverage increased (+0.4%) to 92.087% when pulling 0a53af6 on Gabriel-Azevedo-Ferreira:adding_pca_corr_circle_graph into 92753e0 on rasbt:master.

@rasbt
Copy link
Owner

rasbt commented May 29, 2019

Sorry for the mess, it was a bit of a coincidence that the new scikit-learn version was just pushed to conda when you created this PR so that this caused problems with some of the unit tests.

In any case, I made some minor adjustments to the documentation, and it should be all ok for merge now when the unit tests pass. Thanks a lot for the contribution!

@rasbt rasbt merged commit 2787aa4 into rasbt:master May 29, 2019
@rasbt rasbt mentioned this pull request May 29, 2019
@Gabriel-Azevedo-Ferreira
Copy link
Contributor Author

Thanks!
Glad I could contribute!

No problem and thank you for the discussions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants