From 1c935f2d92245a0e8540ab7a6a870cc4fced2c70 Mon Sep 17 00:00:00 2001 From: Umut Date: Tue, 12 Oct 2021 17:46:58 +0300 Subject: [PATCH] refactor(benchmarks): reduce alert tolerance from 5% to 2% from the cleartext version --- benchmarks/linear_regression.py | 2 +- benchmarks/logistic_regression.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/benchmarks/linear_regression.py b/benchmarks/linear_regression.py index 53105e796..e0d15fb20 100644 --- a/benchmarks/linear_regression.py +++ b/benchmarks/linear_regression.py @@ -225,7 +225,7 @@ def main(): # Measure: Non Homomorphic Loss = non_homomorphic_loss # Measure: Homomorphic Loss = homomorphic_loss # Measure: Relative Loss Difference Between Homomorphic and Non Homomorphic Implementation (%) = difference - # Alert: Relative Loss Difference Between Homomorphic and Non Homomorphic Implementation (%) > 5 + # Alert: Relative Loss Difference Between Homomorphic and Non Homomorphic Implementation (%) > 2 if __name__ == "__main__": diff --git a/benchmarks/logistic_regression.py b/benchmarks/logistic_regression.py index e1184d0de..bd9f95a42 100644 --- a/benchmarks/logistic_regression.py +++ b/benchmarks/logistic_regression.py @@ -302,7 +302,7 @@ def main(): # Measure: Non Homomorphic Accuracy = non_homomorphic_accuracy # Measure: Homomorphic Accuracy = homomorphic_accuracy # Measure: Accuracy Difference Between Homomorphic and Non Homomorphic Implementation (%) = difference - # Alert: Accuracy Difference Between Homomorphic and Non Homomorphic Implementation (%) > 5 + # Alert: Accuracy Difference Between Homomorphic and Non Homomorphic Implementation (%) > 2 if __name__ == "__main__":