We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug The TokenAttributions model accepts multiple label-attribution pairs, while the UI can only handle one.
TokenAttributions
To Reproduce Steps to reproduce the behavior:
import rubrix as rb record = rb.TextClassificationRecord( inputs="mock", prediction=[("POSITIVE", 0.9), ("NEGATIVE", 0.1)], explanation={"text": [ rb.TokenAttributions( token="mock", attributions={"POSITIVE": 0.5, "NEGATIVE": -0.5} ) ]}, )
Expected behavior Maybe for now the model should only accept one label-attribution pair, or the UI should be able to handle various.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
@frascuchon @leiyre
Sorry, something went wrong.
fix(#1248): allow multiple label attributions in UI
f45e97f
fix #1248 This PR gets prediction from label attribution list to display the explain
fix(#1248): allow multiple label attributions in UI (#1424)
bd39624
a9f8363
(cherry picked from commit bd39624)
frascuchon
leiyre
Successfully merging a pull request may close this issue.
Describe the bug
The
TokenAttributions
model accepts multiple label-attribution pairs, while the UI can only handle one.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Maybe for now the model should only accept one label-attribution pair, or the UI should be able to handle various.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: