Skip to content

Commit

Permalink
OK, wth...why does putting the threshold make this work for level 4, 5?
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewQuijano committed Jan 7, 2024
1 parent 1189fd7 commit c728bb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/weka/finito/client.java
Original file line number Diff line number Diff line change
Expand Up @@ -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" +
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/weka/finito/structs/NodeInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public final class NodeInfo implements Serializable, Comparable<NodeInfo> {
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;
Expand All @@ -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){
Expand Down

0 comments on commit c728bb4

Please sign in to comment.