Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
*cpgd baseline ref
Browse files Browse the repository at this point in the history
  • Loading branch information
nkrusch committed Dec 23, 2023
1 parent 115e8ef commit fff8c74
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions plot/table.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def make_table(self, fname, headers, mat):
writer.headers = headers.split(',')
writer.value_matrix = sorted(mat, key=srt)
writer.write_table()
ensure_dir(fn)
writer.dump(fn)
return self

Expand Down Expand Up @@ -88,8 +89,8 @@ def fmt(r):
t = (mean(r['folds']['dur']) / 1e9) if use_attack_dur \
else r['experiment']['duration_sec'] / k
ba = attack[1:] if (attack[0] == 'V' or (
attack == 'CPGD' and 'original'
not in self.directory)) else attack
attack == 'CPGD' and 'perf'
in self.directory)) else attack
if b := baseline.find(cls, name, ba):
if use_attack_dur:
if 'dur' in b['folds']:
Expand Down
8 changes: 4 additions & 4 deletions ref_result/__time_ref_result_attacks.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
classifier exp-name attack t0 t(s) t-ratio
Neural Network IoT-23 CPGD 41 105 2.55
Neural Network IoT-23 CPGD 45 105 2.31
Neural Network IoT-23 VHSJ 507 483 0.95
Neural Network IoT-23 VPGD 41 144 3.49
Neural Network IoT-23 VZoo 2875 2916 1.01
Neural Network LCLD CPGD 34 451 13.28
Neural Network LCLD CPGD 78 451 5.79
Neural Network LCLD VHSJ 1008 1000 0.99
Neural Network LCLD VPGD 34 165 4.85
Neural Network LCLD VZoo 4236 4080 0.96
Neural Network UNSW-NB15 CPGD 21 97 4.74
Neural Network UNSW-NB15 CPGD 52 97 1.88
Neural Network UNSW-NB15 VHSJ 850 771 0.91
Neural Network UNSW-NB15 VPGD 21 57 2.77
Neural Network UNSW-NB15 VZoo 3560 3430 0.96
Neural Network URL CPGD 31 256 8.25
Neural Network URL CPGD 47 256 5.50
Neural Network URL VHSJ 477 441 0.92
Neural Network URL VPGD 31 107 3.43
Neural Network URL VZoo 2479 2351 0.95
Expand Down

0 comments on commit fff8c74

Please sign in to comment.