Skip to content

Commit d698c52

Browse files
committed
Refactor module eval to evaluate
1 parent 98aa3d9 commit d698c52

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+156
-95
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ attack_args = {'steps': 10, 'decay': 1.0}
8383
attack = create_attack('MIFGSM', model, normalize, device, eps=0.03, **attack_args)
8484
```
8585

86-
Check out [examples/](examples/mifgsm_transfer.py) and [`torchattack.eval.runner`](torchattack/eval/runner.py) for full examples.
86+
Check out [examples/](examples/mifgsm_transfer.py) and [`torchattack.evaluate.runner`](torchattack/evaluate/runner.py) for full examples.
8787

8888
## Attacks
8989

docs/api/eval/eval-dataset.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/api/eval/eval-metric.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/api/eval/eval-runner.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/api/eval/index.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/api/evaluate/eval-dataset.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# NIPS 2017 Dataset
2+
3+
::: torchattack.evaluate.dataset

docs/api/evaluate/eval-metric.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Fooling rate metric
2+
3+
::: torchattack.evaluate.metric

docs/api/evaluate/eval-runner.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Attack runner
2+
3+
::: torchattack.evaluate.runner
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ As a rule of thumb, we recommend saving images as PNGs, as they better keep the
1616

1717
A commonly used perturbation magnitude is $\varepsilon = 8 / 255$, for reference.
1818

19-
::: torchattack.eval.save_image_batch
19+
::: torchattack.evaluate.save_image_batch

docs/api/evaluate/index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Evaluation module
2+
3+
!!! warning
4+
This module has been renamed to `torchattacks.evaluate` as of [v1.5.1](https://github.com/spencerwooo/torchattack/releases/tag/v1.5.1). The previous `torchattack.eval` will be deprecated in the future.
5+
6+
The evaluation module `torchattack.evaluate` provides a few tools that are commonly used in transfer-based attack experiments.
7+
8+
- [Saving adversarial examples](eval-save-image.md)
9+
- [Fooling rate metric](eval-metric.md)
10+
- [NIPS 2017 Dataset](eval-dataset.md)
11+
- [Attack runner](eval-runner.md)

0 commit comments

Comments
 (0)