fix max_auc for summary without slices

Before: shows the AUC of the result with the max attacker advantage
Expected and fixed: shows the AUC of the result with max AUC
This commit is contained in:
Lucas Lange 2021-06-10 11:09:53 +02:00 committed by GitHub
parent c12a7acd9d
commit 042a33a008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -678,7 +678,7 @@ class AttackResults:
summary = []
# Summary over all slices
max_auc_result_all = self.get_result_with_max_attacker_advantage()
max_auc_result_all = self.results.get_result_with_max_auc()
summary.append('Best-performing attacks over all slices')
summary.append(
' %s (with %d training and %d test examples) achieved an AUC of %.2f on slice %s'