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
Addresses Issue #615 : Adding new parameters "Colorbar" and "Heatmap" in PCA visualizer #884
Conversation
@rebeccabilbro Hey, there. |
Hey @percygautam, |
Hello there @percygautam and so glad to see this moving forward! My recommendation is definitely along the lines of what @naresh-bachwani is suggesting (P.S. thanks for jumping in here @naresh-bachwani and very glad you're keeping track of this so that you'll be ready to jump in with the other PCA roadmap improvements once this is merged! Potentially you and I should team up in reviewing this PR once @percygautam is ready for us!). @percygautam I propose that you read through our latest improvements to Hope this helps and keep us posted! |
Hey @rebeccabilbro @naresh-bachwani |
I propose adding logic so that the multi-axes are only available if the user selects a 2D plot (e.g. raise an error if Also, @percygautam — it looks like for some reason your PR has integrated commits from an unrelated PR for the new Cook's Distance visualizer. Would you please remove all of those additions from this PR so that we will not have a merge conflict? |
@rebeccabilbro I have done the changes you mentioned. |
Ok, great @percygautam! I've just pulled from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey there @percygautam,
Sorry for the delay in reply. As I mentioned earlier, you have done a great job. I have added a few comments on your approach. Feel free to ask any questions.
Apart from this, it would be great if you could update the docstring with the new parameters.
Testing is an essential feature of YB library. It makes sure that everything is working as it is supposed to. I would love to work with you to add tests for the new features. If you're open to it, we can further discuss these.
@naresh-bachwani Thank you for your suggestions. I have done the changes you mentioned. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi again @percygautam and shout-out to @naresh-bachwani for doing the first review of this! I noticed there was a bit of a merge conflict because of a PR that we just merged in that affected a lot of the test files, so I went ahead and resolved the conflict, updated the images, and pushed them to your branch.
This PR looks like it's 95% of the way there! I think there are only a few things left to do (@naresh-bachwani let me know if I missed anything else!):
- address some of the test failures (this may take some experimenting with some of the text-removal tools for our visual comparison tests)
- update the parameters listed in the docstring for the PCA visualizer class to include
colorbar
andheatmap
and explain how are meant to be used and what their default values are - update the parameters listed in the docstring for quickmethod to include
colorbar
andheatmap
and explain how are meant to be used and what their default values are - add docstrings to explain what the
draw
method andfinalize
method do
@percygautam let me know if you'd like me to help wrap things up with the image comparison tests, etc — I'd be happy to help!
Hey there @rebeccabilbro and @percygautam, @rebeccabilbro, we added the following tests:
Are there any other tests that you think we must be adding? Apart from this and docstring, all other things are looking great! |
@rebeccabilbro @naresh-bachwani -- it looks like the text removal tools in the image similarity tests are only affecting the primary Axes - and the text that is causing the issues here are on the two new axes of the colorbar and the heatmap. I've opened up an issue #916 that will address this. @percygautam - For now, would you mind removing the ticks explicitly in the tests as @naresh-bachwani suggested? Please put a comment with a |
@percygautam — just checking in, how's your progress on this? We're so close! |
@rebeccabilbro Sorry for the delay in progress! Thank you, @naresh-bachwani and @bbengfort for your inputs. I'll do the changes mentioned by today! |
@rebeccabilbro I have done some changes! I am having some problem with pytest, will change the baseline images once it's resolved. |
@rebeccabilbro @naresh-bachwani After removing text from the images, tests are still failing. How to rectify this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work @percygautam! I've pushed up a few small additions (e.g. adding in docstrings for some of the methods that didn't have them so that they'll show up nicely in our Sphinx docs) & the tests are now running again. As soon as everything passes, I think we'll be ready to merge this in — thanks for sticking this out to the end! 😃
The following changes were made to
pca.py
referenced in #615 :Next Step:
P.S: I am adding a snippet showing PCA visualization of the dataset credit from yellowbrick.datasets, when both the parameters are True and proj_dim = 2.