From 499899d0bf13b48f4d2863b2f064e2891c5ff589 Mon Sep 17 00:00:00 2001 From: Navin Singh Date: Tue, 15 Feb 2022 17:35:09 +0530 Subject: [PATCH] prediction score: set precision to 2 with ~ floor mode --- core/src/main/java/zingg/Labeller.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/zingg/Labeller.java b/core/src/main/java/zingg/Labeller.java index 7950b4536..aab98b50c 100644 --- a/core/src/main/java/zingg/Labeller.java +++ b/core/src/main/java/zingg/Labeller.java @@ -107,7 +107,7 @@ public void processRecordsCli(Dataset lines) throws ZinggClientException { "\tZingg does not do any prediction for the above pairs as Zingg is still collecting training data to build the preliminary models."); } else { msg2 = String.format("\tZingg predicts the above records %s with a similarity score of %.2f", - matchType, score); + matchType, Math.floor(score * 100) * 0.01); } //String msgHeader = msg1 + msg2;