mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-26 17:57:16 +00:00
Revert "Classifier: compare min/max chance"
This reverts commit 82a629e7d1
.
This commit is contained in:
parent
e7cce96751
commit
25c3c8872f
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue