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

Fix/AttributeError in accuracy tests for multi label classification #1118

Conversation

chakravarthik27
Copy link
Collaborator

error

  File "/usr/local/lib/python3.10/dist-packages/langtest/transform/accuracy.py", line 247, in run
    cls.model_result = TestResultManager().prepare_model_response(raw_data_copy)
  File "/usr/local/lib/python3.10/dist-packages/langtest/utils/custom_types/helpers.py", line 759, in prepare_model_response
    if sample.expected_results.multi_label:
AttributeError: 'NEROutput' object has no attribute 'multi_label'

…cation in text-classification task and predictions in ner task
@chakravarthik27 chakravarthik27 self-assigned this Sep 18, 2024
@chakravarthik27 chakravarthik27 merged commit 4664bbf into release/2.4.0 Sep 18, 2024
3 checks passed
@chakravarthik27 chakravarthik27 linked an issue Sep 19, 2024 that may be closed by this pull request
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

Successfully merging this pull request may close these issues.

Fix Error in Accuracy Tests for Multi-Label Classification.
1 participant