Skip to content

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

Merged
chakravarthik27 merged 3 commits intorelease/2.4.0from
fix/error-in-accuracy-tests-for-multi-label-classification
Sep 18, 2024
Merged

Fix/AttributeError in accuracy tests for multi label classification#1118
chakravarthik27 merged 3 commits intorelease/2.4.0from
fix/error-in-accuracy-tests-for-multi-label-classification

Conversation

@chakravarthik27
Copy link
Copy Markdown
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
@chakravarthik27 chakravarthik27 linked an issue Sep 19, 2024 that may be closed by this pull request
@chakravarthik27 chakravarthik27 deleted the fix/error-in-accuracy-tests-for-multi-label-classification branch September 23, 2024 14:36
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