Skip to content

Conversation

@mattbit
Copy link
Member

@mattbit mattbit commented Sep 20, 2023

  • Remove percentage and put x our of N samples changed because we don't know how many samples contain countries
  • Add the probabilities next to the prediction

@mattbit mattbit self-assigned this Sep 20, 2023
@linear
Copy link

linear bot commented Sep 20, 2023

GSK-1765 Enhance `BaseTextPerturbationDetector` outputs

  • remove percentage and put x our of N samples changed because we don't know how many samples contain countries.

    	Switch Religion: 12.50% of samples changed prediction after perturbation
    
  • Add the probabilities next to the prediction

@mattbit mattbit added the scan Created by Linear-GitHub Sync label Sep 20, 2023
"feature": feature,
"domain": f"Feature `{feature}`",
"deviation": f"{round(fail_rate * 100, 2)}% of tested samples changed prediction after perturbation",
"deviation": f"{failed_size} out of {slice_size} tested samples ({round(fail_rate * 100, 2)}%) changed prediction after perturbation",
Copy link
Contributor

Choose a reason for hiding this comment

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

we should unify the convention here, I used {failed_size}/{slice_size} in the prompt-injection.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let’s keep what is the most clear in your opinion

@mattbit
Copy link
Member Author

mattbit commented Oct 16, 2023

@rabah-khalek what should we do with this? It’s been a while

@rabah-khalek
Copy link
Contributor

sorry, it's good to go once the conflicts are resolved.

Co-authored-by: Rabah Abdul Khalek <[email protected]>
@mattbit
Copy link
Member Author

mattbit commented Oct 17, 2023

Taking care of this now

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@mattbit mattbit merged commit 6a5bb22 into main Oct 17, 2023
@mattbit mattbit deleted the task/GSK-1765 branch October 17, 2023 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scan Created by Linear-GitHub Sync

Development

Successfully merging this pull request may close these issues.

3 participants