diff --git a/plot/table.py b/plot/table.py index d8701dc..2eb2738 100644 --- a/plot/table.py +++ b/plot/table.py @@ -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 @@ -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']: diff --git a/ref_result/__time_ref_result_attacks.txt b/ref_result/__time_ref_result_attacks.txt index 107ab41..9798728 100644 --- a/ref_result/__time_ref_result_attacks.txt +++ b/ref_result/__time_ref_result_attacks.txt @@ -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