mirror of https://github.com/M66B/FairEmail.git
Classifier: min probability 20%
This commit is contained in:
parent
f918627312
commit
d5672d9e64
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue