Small improvement

pull/191/head
M66B 4 years ago
parent 7860a3986f
commit 094813b644

@ -214,7 +214,7 @@ public class MessageClassifier {
Chance c = new Chance(clazz, chance); Chance c = new Chance(clazz, chance);
chances.add(c); chances.add(c);
EntityLog.log(context, "Classifier " + c + EntityLog.log(context, "Classifier " + c +
" frequency=" + stat.totalFrequency + "/" + maxMessages + " msgs" + " frequency=" + (Math.round(stat.totalFrequency * 100.0) / 100.0) + "/" + maxMessages + " msgs" +
" matched=" + stat.matchedWords + "/" + state.words.size() + " words" + " matched=" + stat.matchedWords + "/" + state.words.size() + " words" +
" text=" + TextUtils.join(", ", stat.words)); " text=" + TextUtils.join(", ", stat.words));
} }
@ -463,7 +463,7 @@ public class MessageClassifier {
@NotNull @NotNull
@Override @Override
public String toString() { public String toString() {
return clazz + "=" + chance; return clazz + "=" + Math.round(chance * 100.0 * 100.0) / 100.0 + "%";
} }
} }
} }

Loading…
Cancel
Save