From a861d11027dee846aff7ac97e73dcc4ea8b9c95a Mon Sep 17 00:00:00 2001 From: Soroosh Mariooryad Date: Wed, 26 Jul 2017 17:51:19 -0700 Subject: [PATCH] Update suggestion ranking model coefficients. - This is not a functional change and it only updates the model weights which affects the ranking of suggestion items. The previous weights were tuned to force the ranking to have immediate response to signal changes. But, the current weights are tuned to maximize the user interactions with suggestion. Test: RunSettingsRoboTests & also manually testing suggestions Bug: 64093782 Change-Id: I9f50ed6c4ed22d1a14110ec61156c14ba74aef64 --- .../dashboard/suggestions/SuggestionRanker.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/com/android/settings/dashboard/suggestions/SuggestionRanker.java b/src/com/android/settings/dashboard/suggestions/SuggestionRanker.java index a7458bcf9a2..14c4b1548ee 100644 --- a/src/com/android/settings/dashboard/suggestions/SuggestionRanker.java +++ b/src/com/android/settings/dashboard/suggestions/SuggestionRanker.java @@ -34,13 +34,13 @@ public class SuggestionRanker { // by training a binary classifier to detect the clicked items. The higher the obtained // relevance metric, the higher chance of getting clicked. private static final Map WEIGHTS = new HashMap() {{ - put(SuggestionFeaturizer.FEATURE_IS_SHOWN, 4.07506758256); - put(SuggestionFeaturizer.FEATURE_IS_DISMISSED, 2.11535473578); - put(SuggestionFeaturizer.FEATURE_IS_CLICKED, 1.21885461304); - put(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_SHOWN, 3.18832024515); - put(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_DISMISSED, 1.09902706645); - put(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_CLICKED, 0.262631082877); - put(SuggestionFeaturizer.FEATURE_SHOWN_COUNT, -220.4361849); + put(SuggestionFeaturizer.FEATURE_IS_SHOWN, 5.05140842519); + put(SuggestionFeaturizer.FEATURE_IS_DISMISSED, 2.29641455171); + put(SuggestionFeaturizer.FEATURE_IS_CLICKED, -2.98812233623); + put(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_SHOWN, 5.02807250202); + put(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_DISMISSED, 2.49589700842); + put(SuggestionFeaturizer.FEATURE_TIME_FROM_LAST_CLICKED, -4.3377039948); + put(SuggestionFeaturizer.FEATURE_SHOWN_COUNT, -2.35993512546); }}; private final SuggestionFeaturizer mSuggestionFeaturizer;