mirror of
https://github.com/IBM/ai-privacy-toolkit.git
synced 2026-04-26 05:16:22 +02:00
Change back flake8 warnings to errors. Fix tests not to fail it. (#76)
Signed-off-by: Maya Anderson <mayaa@il.ibm.com>
This commit is contained in:
parent
f2f8ddc877
commit
3885ab9d9d
6 changed files with 14 additions and 11 deletions
|
|
@ -78,9 +78,9 @@ class DatasetAssessmentManager:
|
|||
if self.config.persist_reports:
|
||||
results_log_file = "_results.log.csv"
|
||||
self._dump_scores_to_file(self.attack_scores_per_record_knn_probabilities,
|
||||
"per_record_knn_probabilities" + results_log_file, True)
|
||||
"per_record_knn_probabilities" + results_log_file, True)
|
||||
self._dump_scores_to_file(self.attack_scores_whole_dataset_knn_distance,
|
||||
"whole_dataset_knn_distance" + results_log_file, True)
|
||||
"whole_dataset_knn_distance" + results_log_file, True)
|
||||
|
||||
@staticmethod
|
||||
def _dump_scores_to_file(attack_scores: list[DatasetAttackScore], filename: str, header: bool):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue