From 25c3c8872f2550722e83093d5ced857feb1694fa Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 5 Jan 2021 12:48:38 +0100 Subject: [PATCH] Revert "Classifier: compare min/max chance" This reverts commit 82a629e7d1dbd378f7484e49a98c3649b1f41eca. --- app/src/main/java/eu/faircode/email/MessageClassifier.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/MessageClassifier.java b/app/src/main/java/eu/faircode/email/MessageClassifier.java index 9c8fd94f98..a59ea254f3 100644 --- a/app/src/main/java/eu/faircode/email/MessageClassifier.java +++ b/app/src/main/java/eu/faircode/email/MessageClassifier.java @@ -275,9 +275,7 @@ public class MessageClassifier { }); String classification = null; - double maxChance = chances.get(0).chance; - double minChance = chances.get(chances.size() - 1).chance; - if (maxChance / minChance >= CHANCE_THRESHOLD) + if (chances.get(0).chance / chances.get(1).chance >= CHANCE_THRESHOLD) classification = chances.get(0).clazz; Log.i("Classifier classify=" + classify + " classified=" + classification);