Classifier: min probability 20%

This commit is contained in:
M66B 2021-01-10 19:23:23 +01:00
parent f918627312
commit d5672d9e64
2 changed files with 2 additions and 2 deletions

View File

@ -800,7 +800,7 @@ public class FragmentOptionsMisc extends FragmentBase implements SharedPreferenc
swClassification.setChecked(prefs.getBoolean("classification", false));
int class_min_chance = prefs.getInt("class_min_probability", 50);
int class_min_chance = prefs.getInt("class_min_probability", 20);
tvClassMinProbability.setText(getString(R.string.title_advanced_class_min_chance, NF.format(class_min_chance)));
sbClassMinProbability.setProgress(class_min_chance);

View File

@ -256,7 +256,7 @@ public class MessageClassifier {
});
SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context);
double class_min_chance = prefs.getInt("class_min_probability", 50) / 100.0;
double class_min_chance = prefs.getInt("class_min_probability", 20) / 100.0;
double class_min_difference = prefs.getInt("class_min_difference", 50) / 100.0;
// Select best class