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

fix for issue 586 #588

Merged
merged 5 commits into from
Sep 15, 2019
Merged

fix for issue 586 #588

merged 5 commits into from
Sep 15, 2019

Conversation

sohrabtowfighi
Copy link
Contributor

Description

Related issues or pull requests

Pull Request Checklist

  • Added a note about the modification or contribution to the ./docs/sources/CHANGELOG.md file (if applicable)
  • Added appropriate unit test functions in the ./mlxtend/*/tests directories (if applicable)
  • Modify documentation in the corresponding Jupyter Notebook under mlxtend/docs/sources/ (if applicable)
  • Ran PYTHONPATH='.' pytest ./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., PYTHONPATH='.' pytest ./mlxtend/classifier/tests/test_stacking_cv_classifier.py -sv)
    No test found. Basic run on my own end worked.
  • Checked for style issues by running flake8 ./mlxtend
    I don't have flake8. changes were minimal.

@pep8speaks
Copy link

pep8speaks commented Sep 14, 2019

Hello @sohrabtowfighi! 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-09-15 22:42:57 UTC

@coveralls
Copy link

coveralls commented Sep 14, 2019

Coverage Status

Coverage decreased (-0.02%) to 92.329% when pulling 5a6a0d7 on pySRURGS:master into 5565b2b on rasbt:master.

@rasbt
Copy link
Owner

rasbt commented Sep 14, 2019

Thanks for the PR! Since we have no unit tests for the behavior of the plotting functions, could you update the examples in the jupyer notebook documentation to assess whether the changes work as intended? The respective file would be in https://github.com/rasbt/mlxtend/blob/master/docs/sources/user_guide/plotting/plot_decision_regions.ipynb

@sohrabtowfighi
Copy link
Contributor Author

I ran the file you said. Looks the same except I got a FileNotFoundError at the very last line. I can't find the file and this seems unrelated to my commit.

In [23]:
with open('../../api_modules/mlxtend.plotting/plot_decision_regions.md', 'r') as f:
print(f.read())

@rasbt
Copy link
Owner

rasbt commented Sep 14, 2019

Oh that's because those are not explicitly saved on/commited to the GitHub repo (to save space). These are the function and class documentations that get directly extracted from the docstrings.

So, all you would need to do is

a) cd into the docs subdirectory, for example

cd ~/code/mlxtend/docs/

b) in this folder, run the make_api.py script

python3 make_api.py

This will generate all the up-to-date .md files.

@sohrabtowfighi
Copy link
Contributor Author

I got this error

File "C:\Users\sohra\Anaconda3\lib\site-packages\skimage\util\arraycrop.py", line 8, in
from numpy.lib.arraypad import _validate_lengths
ImportError: cannot import name '_validate_lengths'

I also don't think this is related to my commit and I have a fixed copy of plot_confusion_matrix already in my code. I don't think I will go further in this rabbit hole.

@rasbt
Copy link
Owner

rasbt commented Sep 14, 2019

Hm weird. In any case, no need to dig into that further. Could you pls upload the updated jupyter notebook you mentioned? No need to execute the last cell (the one which caused the error); I can take care of that later

@rasbt rasbt merged commit e2f7e07 into rasbt:master Sep 15, 2019
@rasbt rasbt mentioned this pull request Jan 29, 2020
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