mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-08 19:44:57 -05:00
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:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user