Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@danielezhu
Copy link
Contributor

Description of changes:
Title

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

},
},
),
CASRTestCase(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I deleted two of the test cases, as we are already unit-testing all of the different perturbation variants. We've already done this for general semantic robustness.

)
],
)
def test_classification_accuracy_semantic_robustness_evaluate_sample_with_model_output(self, test_case):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Getting rid of this test case as we no longer have model_output as a parameter in evaluate_sample. I've done the same thing for QA accuracy semantic robustness. The rationale is that users need to provide the model in order to get perturbed responses anyways, so it's just added work for them to get the model output first, and then pass it to the evaluate_sample method.

@danielezhu danielezhu merged commit 42eaa26 into aws:main Mar 27, 2024
@danielezhu danielezhu deleted the class_acc_sr branch March 27, 2024 22: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.

3 participants