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

Flexible metric function for accuracy and l2 norm [JATIC-I2-IBM] #2301

Open
kieranfraser opened this issue Oct 3, 2023 · 0 comments
Open
Assignees
Labels
enhancement New feature or request
Projects
Milestone

Comments

@kieranfraser
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
Having run an attack, I'd like a function that automatically calculates the clean and robust accuracy as well as returning details about the perturbation added (e.g. average perturbation).

Describe the solution you'd like
A function into which I can pass attack input and output and the metrics for accuracy and l2 norm are calculated and returned without rerunning the attack.

Describe alternatives you've considered
Currently ART has a number of functions in metrics.py that return accuracy and perturbation - each of these require an attack to be passed to it. This would mean attacks would be run repeatedly to get all the mentioned metrics and for long running attacks this might be infeasible. The alternative is to code the calculations manually when needed - but this is repetitive code whenever evaluations are conducted.

Additional context
n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
No open projects
ART 1.17.0
Awaiting triage
Development

No branches or pull requests

2 participants