Revert "Classifier: compare min/max chance"

This reverts commit 82a629e7d1.
pull/191/head
M66B 4 years ago
parent e7cce96751
commit 25c3c8872f

@ -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…
Cancel
Save