Skip to content

Commit

Permalink
(#7) Attack: Logging defense method name
Browse files Browse the repository at this point in the history
  • Loading branch information
betarixm committed May 2, 2022
1 parent deb2928 commit 8a1fe48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/attack/attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@
print(f" - Normal: {acc.result()}")
print(f" - Under Attack: {acc_under_attack.result()}")

if args.defense:
print(f" - With Defense: {acc_with_defense.result()}")
if defense_model is not None:
print(f" - With {args.defense.upper()}: {acc_with_defense.result()}")

0 comments on commit 8a1fe48

Please sign in to comment.