From c728bb489b8a119aae4b4355da1a90e2c35a53f2 Mon Sep 17 00:00:00 2001 From: AndrewQuijano Date: Sat, 6 Jan 2024 23:16:57 -0500 Subject: [PATCH] OK, wth...why does putting the threshold make this work for level 4, 5? --- src/main/java/weka/finito/client.java | 2 +- src/main/java/weka/finito/structs/NodeInfo.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/weka/finito/client.java b/src/main/java/weka/finito/client.java index 3856e31..3486cf1 100644 --- a/src/main/java/weka/finito/client.java +++ b/src/main/java/weka/finito/client.java @@ -417,7 +417,7 @@ public void run() { hashed_classification.put(hash(aClass), aClass); } // Make sure level-sites got everything... - Thread.sleep(2000); + Thread.sleep(2500); } else { System.out.println("Not contacting server-site. Seems you just want to test on the" + diff --git a/src/main/java/weka/finito/structs/NodeInfo.java b/src/main/java/weka/finito/structs/NodeInfo.java index a0891f1..3755912 100644 --- a/src/main/java/weka/finito/structs/NodeInfo.java +++ b/src/main/java/weka/finito/structs/NodeInfo.java @@ -20,7 +20,7 @@ public final class NodeInfo implements Serializable, Comparable { public final boolean is_leaf; public final String variable_name; public final int comparisonType; - public final float threshold; + public float threshold; private BigInteger paillier; private BigInteger dgk; @@ -44,6 +44,7 @@ public void encrypt(float threshold, int precision, if (dgk_public_key != null) { this.setDGK(DGKOperations.encrypt(temp_thresh, dgk_public_key)); } + this.threshold = threshold; } public void setDGK(BigInteger dgk){