Default class probability of 15%

pull/191/head
M66B 4 years ago
parent 31ceba52a4
commit 67b2b36787

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

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

Loading…
Cancel
Save