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.

nathanng17
nathanng17 previously approved these changes Mar 27, 2024
SemanticRobustnessConfig,
get_perturbation_transform,
get_model_responses_from_perturbed_inputs,
get_model_outputs_from_perturbed_inputs,
Copy link
Contributor

Choose a reason for hiding this comment

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

i see use_ray is still present in this file, could you please remove it? Also check if it is present in any other files yet.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will handle in separate PR dedicated to GSR changes.

target_output_key = self.transform.target_output_key
model_output_key = self.transform.model_output_key
sample = {target_output_key: target_output, model_output_key: model_output}
pipeline = TransformPipeline([self.transform])
Copy link
Contributor

@malhotra18 malhotra18 Mar 27, 2024

Choose a reason for hiding this comment

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

it feels this is making evaluate_sample more complicated, was this concern raised earlier? I understand we are too late to discuss on this now, but can you share the conclusion or thread if a discussion on this was done earlier?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It does make things slightly more complicated, but I think it's best to keep things consistent across all algos, where it's clear that evaluate_sample and evaluate execute the algo's pipeline. Plus, in terms of raw lines of code, there's hardly any increase.

Copy link
Contributor

Choose a reason for hiding this comment

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

one of the major tenet for evaluate_sample has been to keep it simple and readable. I feel we are moving against that by adding transforms in the method. Yeah, let's capture a backlog SIM for it, we can discuss with the team then and take a call.

I am in favor of not having so many hops for customer in evaluate_sample code.

@danielezhu danielezhu merged commit 5ebb18d into aws:main Mar 27, 2024
@danielezhu danielezhu deleted the qa_acc branch March 27, 2024 17:14
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