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

import show_prediction issue #405

Open
akuuzii opened this issue Apr 4, 2021 · 3 comments
Open

import show_prediction issue #405

akuuzii opened this issue Apr 4, 2021 · 3 comments

Comments

@akuuzii
Copy link

akuuzii commented Apr 4, 2021

from eli5 import explain_weights
from eli5 import show_prediction
Traceback (most recent call last):
File "", line 1, in
ImportError: cannot import name 'show_prediction' from 'eli5' (C:\randomdirectory\PycharmProjects\cardiowebML\venv\lib\site-packages\eli5_init_.py)

for some reason, I can import some functions but not show_predictions

@teabolt
Copy link
Contributor

teabolt commented Apr 7, 2021

Hi @akuuzii. Can you show us the output of pip freeze when using your venv? Does from eli5 import explain_prediction work? For your reference show_prediction is implemented at https://github.com/TeamHG-Memex/eli5/blob/master/eli5/ipython.py#L306

@akuuzii
Copy link
Author

akuuzii commented Apr 12, 2021

attrs==20.3.0
eli5==0.11.0
et-xmlfile==1.0.1
graphviz==0.16
Jinja2==2.11.3
joblib==1.0.1
MarkupSafe==1.1.1
numpy==1.20.2
openpyxl==3.0.7
pandas==1.2.3
python-dateutil==2.8.1
pytz==2021.1
scikit-learn==0.24.1
scipy==1.6.2
six==1.15.0
sklearn==0.0
tabulate==0.8.9
threadpoolctl==2.1.0
xgboost==1.3.3

@akuuzii
Copy link
Author

akuuzii commented Apr 12, 2021

I am able to import explain_prediction.

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

No branches or pull requests

2 participants