Index: chrome/browser/history/scored_history_match.h |
diff --git a/chrome/browser/history/scored_history_match.h b/chrome/browser/history/scored_history_match.h |
index 15a37e7bd73673dc4efe2ca93a5e29a06d3e8d59..6d4563ca5727a27e61b26eb55845084cddf9a142 100644 |
--- a/chrome/browser/history/scored_history_match.h |
+++ b/chrome/browser/history/scored_history_match.h |
@@ -87,6 +87,7 @@ class ScoredHistoryMatch : public history::HistoryMatch { |
FRIEND_TEST_ALL_PREFIXES(ScoredHistoryMatchTest, ScoringDiscountFrecency); |
FRIEND_TEST_ALL_PREFIXES(ScoredHistoryMatchTest, ScoringScheme); |
FRIEND_TEST_ALL_PREFIXES(ScoredHistoryMatchTest, ScoringTLD); |
+ FRIEND_TEST_ALL_PREFIXES(ScoredHistoryMatchTest, GetFinalRelevancyScore); |
Bart N.
2015/02/10 01:22:29
Sort?
Ashok vardhan
2015/02/10 23:57:45
Acknowledged.
|
// The number of days of recency scores to precompute. |
static const int kDaysToPrecomputeRecencyScoresFor; |
@@ -128,9 +129,30 @@ class ScoredHistoryMatch : public history::HistoryMatch { |
// Combines the two component scores into a final score that's |
// an appropriate value to use as a relevancy score. |
- static float GetFinalRelevancyScore( |
- float topicality_score, |
- float frequency_score); |
+ static float GetFinalRelevancyScore(float topicality_score, |
+ float frequency_score, |
+ std::string& hqp_relevance_buckets); |
+ |
+ // Initializes the HQP experimental params. |
+ // If the experimental scoring is enabled, it sets: |
+ // |
+ // 1. hqp_experimental to true. Default value is set to false. |
+ // |
+ // 2. It initializes the topicality_threshold_, and hqp_scoring from the |
+ // finch experiment params. |
+ // |
+ // 3. topicality_threshold_,is used to control the topicality scoring. |
Bart N.
2015/02/10 01:22:29
extra comma?
Ashok vardhan
2015/02/10 23:57:45
Done.
|
+ // If topicality_threshold > 0, then URLs with topicality score < threshold, |
+ // are given score 0. It is initalized to -1; |
+ // |
+ // 4. hqp_relevance_buckets, buckets that gives the mapping from |
+ // (topicality*frequency) to the final relevance scoring. |
+ // Please see GetFinalRelevancyScore() for more details and scoring method. |
+ bool hqp_experimental_scoring_enabled_; |
+ float topicality_threshold_; |
+ std::string hqp_relevance_buckets_; |
+ |
+ void InitializeHQPExperimentalParams(); |
// Sets |also_do_hup_like_scoring_|, |
// |max_assigned_score_for_non_inlineable_matches_|, |bookmark_value_|, |