Closed AshwinB-hat closed 5 years ago
Thanks for PR @AshwinB-hat , it's great that you added tests and a detailed docstring right away π
I noticed that you also added a lot of files from running catboost (such as files under "catboost_cached_datasets"), probably you didn't mean to commit them? I think it would be nice to exclude them from the PR.
Also a note regarding the tests, there are two things that would need to be adjusted. Tests are run in different environments, you can run them with tox
(see here https://eli5.readthedocs.io/en/latest/contribute.html). Right now there are two issues:
Will do a code review a bit later, thanks for the PR π
@lopuhin Yes i will revert the commit and look into lightgbm
Merging #303 into master will increase coverage by
0.02%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #303 +/- ##
==========================================
+ Coverage 97.16% 97.19% +0.02%
==========================================
Files 44 45 +1
Lines 2862 2892 +30
Branches 544 547 +3
==========================================
+ Hits 2781 2811 +30
Misses 43 43
Partials 38 38
Impacted Files | Coverage Ξ | |
---|---|---|
eli5/__init__.py | 80% <ΓΈ> (+2.22%) |
:arrow_up: |
eli5/catboost.py | 100% <100%> (ΓΈ) |
@lopuhin I have made the mentioned changes. Although one environment test is failing.
@lopuhin I have updated the PR. Please let me know if any other changes required.
Thanks @AshwinB-hat , PR looks great π I'll check if there is anything that needs to be changed in the docs.
Hi @AshwinB-hat I checked the docs, there are a few issues, but IMO it's also fine to merge this PR and add the docs in a later PR. Here are the docs issues (btw you can check them locally if you go to ./docs/
folder, install requirements and run make html
):
source/libraries/catboost.rst
, see lightgbm docs for an examplesource/overview.rst
source/autodocs/catboost.rst
(see lightgbm docs for an example), and include it into source/autodocs/index.rst
@AshwinB-hat please tell if you'd like to finish the docs in this PR (this can be done later as well), or proceed with the merge?
@lopuhin I prefer I make a different PR for the Catboost docs.
Currently I am investigating the SHAP paper and writing my proposal which I might run by @lopuhin @kmike in a day or two for feedback.
I will look into docs following the submission of my GSOC proposal and start working on the catboost explain_prediction as well.
That is my plan of action as of now.
@AshwinB-hat great, that's a solid plan π
@kmike would you like to check this PR?
Hey! Could you please add docs in the same pull request, to make it complete? I think that's good to have all features tested and documented.
@kmike Yes, will complete the documentation.
@kmike @lopuhin I have added the docs and resolved the warnings. They were arising due to the tutorials not being added in toc tree.
I am done with my exams and other commitments hence the delay. I would be interested on working on the next step that is the prediction.
Also Let me know if any improvement or changes.
hi @lopuhin, You must be flooded with notifications. Just making sure you have seen the above comment. If there are more changes to be done before the merge, please let me know. It will be mean a lot to me if this change was merged.. as it is my first contribution.
Hi @AshwinB-hat , many thanks for adding the docs and resolving comments, I gave a quick look and it looks great, will check in more detail tomorrow morning.
Hi @AshwinB-hat! I'll have a look at the PR so that we can have it merged soon :-).
Could you please update the README file to include the new feature? (https://github.com/AshwinB-hat/eli5/blob/master/README.rst)
@ivanprado Yes! will do it right away!
Hi @AshwinB-hat !
I see some formatting issues in the documentation. That's what I see: Could you please have a look? The best way is by building documentation by yourself. Here you have the instructions: https://github.com/TeamHG-Memex/eli5/tree/master/docs
https://github.com/TeamHG-Memex/eli5/pull/313 has been merged in master, and that should fix the build. Could you please merge back master with your fork? That should make Travis happy :-)
@ivanprado I made the suggested changes and some. Looks fine on the local build (thanks for the tip). Travis seems relatively happier since before. :)
Nice @AshwinB-hat, I'll have a look to the changes! I see the following error in Travis:
/home/travis/build/TeamHG-Memex/eli5/docs/source/autodocs/catboost.rst:4:Inline literal start-string without end-string.
Could you please have a look?
Ok, I had a look, we are very close! Remaining:
__init__.py
https://github.com/TeamHG-Memex/eli5/pull/303#discussion_r287830809catboost.py
lines 71 and 75 if possible. See Codecov report here (lines in red): https://codecov.io/gh/TeamHG-Memex/eli5/pull/303/diff?src=pr&el=tree#D13-75 . Codecov is configured with the following policy: new code should increase test coverage, never decrease it. Let's try to follow it also in this case :-)@ivanprado Guess its good news!
@AshwinB-hat congratulations!. Your first contribution is now in master :-)
π
@lopuhin @ivanprado @kmike Awesome. Thanks for the guidance leading up till this. :D
explain_weights
for catboost is added with this commit along with test scenarios.