From e445f3d26139b440340b6583709c7d8ff36f3ed6 Mon Sep 17 00:00:00 2001 From: Samuel Pastva Date: Tue, 8 Oct 2024 16:14:18 +0200 Subject: [PATCH] Rename data key. --- src/main.rs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index f6d3eb5..3fd7040 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1051,11 +1051,13 @@ async fn get_control_results() -> BackendResponse { let robustness: BigInt = p_card / u_card; let robustness: f64 = robustness.to_f64().unwrap_or(f64::NAN) / 1_000_000.0; - response.push(object! { - "perturbation": key.clone(), - "interpretation_count": value.exact_cardinality().to_u64().unwrap_or(u64::MAX), - "robustness": robustness, - }).unwrap(); + response + .push(object! { + "perturbation": key.clone(), + "color_count": value.exact_cardinality().to_u64().unwrap_or(u64::MAX), + "robustness": robustness, + }) + .unwrap(); } BackendResponse::ok(response.to_string()) } else {