edit the summary string for privacy risk scores

This commit is contained in:
Liwei Song 2020-12-10 18:20:32 -05:00
parent 097a98dcd4
commit 13d1676a00

View file

@ -566,7 +566,7 @@ class SingleRiskScoreResult:
"""
meaningful_threshold_list, precision_list, recall_list = self.attack_with_varied_thresholds(threshold_list)
summary = []
summary.append('Privacy risk score analysis over slice: \"%s\"' %
summary.append('\nPrivacy risk score analysis over slice: \"%s\"' %
str(self.slice_spec))
for i in range(len(meaningful_threshold_list)):
summary.append(' with %.5f as the threshold on privacy risk score, the precision-recall pair is (%.5f, %.5f)' %