1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 10:17:18 +00:00

Revert "Classifier: compare min/max chance"

This reverts commit 82a629e7d1.
This commit is contained in:
M66B 2021-01-05 12:48:38 +01:00
parent e7cce96751
commit 25c3c8872f

View file

@ -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);