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

[NLP] Add 'bow' option in lime model explainer #93

Open
1 of 4 tasks
LexABzH opened this issue Nov 23, 2022 · 0 comments
Open
1 of 4 tasks

[NLP] Add 'bow' option in lime model explainer #93

LexABzH opened this issue Nov 23, 2022 · 0 comments
Labels
3 - Quality of Life Not a priority enhancement New feature or request NLP Issue related to the NLP template

Comments

@LexABzH
Copy link
Collaborator

LexABzH commented Nov 23, 2022

Problem

Lime explainer has bow=True, which will sum all occurrences importance for a given word, not using their position.
That's not a problem for bow models, but a same words can have different importance in a sentence for NN models.

Concerned template

  • NLP template
  • NUM template
  • VISION template
  • How templates are generated - Jinja

Solution

  • Add bow option
  • Check if we should change html / list output if bow=False
  • Adapt streamlit demo
@LexABzH LexABzH added enhancement New feature or request NLP Issue related to the NLP template 3 - Quality of Life Not a priority labels Nov 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Quality of Life Not a priority enhancement New feature or request NLP Issue related to the NLP template
Projects
None yet
Development

No branches or pull requests

1 participant