question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

exp.show_in_notebook(show_table=True) renders poorly with a regression explanation

See original GitHub issue

I’m not sure what I should see but the rendered output doesn’t look right. The screenshot is taken from my rendered public Notebook:

image

I’m flagging this as I believe the regression support in LIME is young, so maybe this rendering isn’t as expected?

The middle display (Negative/Positive) only shows 5 items and feels cramped. The explanation is generated using exp = explainer.explain_instance(example_to_explain, est.predict, num_features=10).

The Notebook is available here: https://github.com/ianozsvald/data_science_delivered/blob/master/ml_explain_regression_prediction.ipynb

watermark reports the following versions (it might be worth setting a version string for lime too):

CPython 3.6.2
IPython 6.1.0

numpy 1.13.1
matplotlib 2.0.2
sklearn 0.18.2
eli5 0.6.1
seaborn 0.8.0
lime n
yellowbrick 0.4.2

compiler   : GCC 4.8.2 20140120 (Red Hat 4.8.2-15)
system     : Linux
release    : 4.9.8-040908-generic
machine    : x86_64
processor  : x86_64
CPU cores  : 8
interpreter: 64bit
Git hash   : d1099144f8b748e8e5aa43676f24bc8cba7204c9

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nasir-bhanpuricommented, May 24, 2018

I was having the same issue with firefox, but seems to render better with chrome.

0reactions
marcotcrcommented, Mar 12, 2019

I think #296 fixes this, let me know if it does not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lime package — lime 0.1 documentation
Will be ignored for regression explanations. Parameters: kwargs – keyword arguments, passed to domain_mapper. Returns: pyplot figure (barchart) ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found