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

text visualizations seems to have colormap reversed #755

Closed
cwmeijer opened this issue Apr 25, 2024 · 9 comments · Fixed by #776
Closed

text visualizations seems to have colormap reversed #755

cwmeijer opened this issue Apr 25, 2024 · 9 comments · Fixed by #776
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@cwmeijer
Copy link
Member

cwmeijer commented Apr 25, 2024

See any other RISE or some of the LIME tutorials images for the correct colormap convention

@elboyran
Copy link
Contributor

elboyran commented May 22, 2024

Should be fixed in the LIME text tutorial and RISE text tutorial indeed!

Colormap - 'bwr'.

Red should indicate a positive contribution towards the decision and blue- a negative contribution.

@elboyran elboyran added documentation Improvements or additions to documentation bug Something isn't working labels May 22, 2024
@SarahAlidoost
Copy link
Member

The default colormap is chosen as RdBu, see here. It should be changed to bwr and notebooks should be updated. I can fix it.

@elboyran
Copy link
Contributor

elboyran commented May 23, 2024 via email

@elboyran
Copy link
Contributor

Also, we are now not using HTML visualization anymore, right?
Then we should edit the 4. Visualization section of the notebook to remove that claim.

@elboyran

This comment was marked as outdated.

@elboyran elboyran self-assigned this May 24, 2024
@elboyran elboyran linked a pull request May 24, 2024 that will close this issue
@elboyran

This comment was marked as outdated.

@SarahAlidoost
Copy link
Member

Fixed the colormap issue (though notebooks can be simplified now, by not using the colormap explicitly) with a few commits: e0d1ee8; 6e843b1 in #769 , but found out dianna breaks if the sentence ends with a dot :-(

Thanks. Let's submit the "dot" problem in another issue. Currently, the visualization wraps the text if there are dots, see here. However, it has not been tested, see here. Can you please submit the "dot" problem in a separate issue? I can try to fix it.

@elboyran
Copy link
Contributor

elboyran commented May 27, 2024 via email

@elboyran elboyran removed a link to a pull request May 31, 2024
@elboyran elboyran linked a pull request May 31, 2024 that will close this issue
elboyran added a commit that referenced this issue May 31, 2024
…orial with the opposite class for the first example and with a second example. It works with special characters now, though slowly.
elboyran added a commit that referenced this issue May 31, 2024
…orial with the opposite class for the first example and with a second example. It works with special characters now, though slowly.
@elboyran
Copy link
Contributor

elboyran commented May 31, 2024

Fixed by commits 643b478, c461e7c and 1302a4f.

@loostrum, @SarahAlidoost , @cwmeijer it's very strange that RISE gives always only positive scores even for very negative reviews! See RISE for text tutorial.. Any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants