fix: benchmarks for regression (#1188)

Wrong variable names for measures in linear regression and missing one in logistic

Closes #1187
This commit is contained in:
Andrei Stoian
2021-12-15 11:04:30 +01:00
committed by GitHub
parent 2ef8b6c43b
commit b34984d44c
3 changed files with 5 additions and 3 deletions

View File

@@ -169,10 +169,10 @@ def main():
print(f"Homomorphic R^2: {homomorphic_test_error:.4f}")
print(f"Relative Difference Percentage: {difference:.2f}%")
# bench: Measure: Non Homomorphic Loss = non_homomorphic_loss
# bench: Measure: Homomorphic Loss = homomorphic_loss
# bench: Measure: Sklearn R^2 = sklearn_r2
# bench: Measure: Non Homomorphic R^2 = non_homomorphic_test_error
# bench: Measure: Homomorphic R^2 = homomorphic_test_error
# bench: Measure: Relative Loss Difference (%) = difference
# bench: Measure: Homomorphic Test Error = homomorphic_test_error
# bench: Alert: Relative Loss Difference (%) > 7.5

View File

@@ -210,6 +210,7 @@ def main():
print(f"Homomorphic Accuracy: {homomorphic_accuracy:.4f}")
print(f"Difference Percentage: {difference:.2f}%")
# bench: Measure: Sklearn accuracy = sklearn_acc
# bench: Measure: Non Homomorphic Accuracy = non_homomorphic_accuracy
# bench: Measure: Homomorphic Accuracy = homomorphic_accuracy
# bench: Measure: Accuracy Difference Between Homomorphic and Non Homomorphic Implementation (%) = difference

View File

@@ -28,6 +28,7 @@ def name_to_id(name):
name = name.replace("]", "")
name = name.replace(",", "")
name = name.replace(".", "-")
name = name.replace("^", "")
return urllib.parse.quote_plus(name.lower())