tab_ranker: add ScoreTabsWithPairwiseScorer
(1) If ScoreTabs is called with type_ == KPairwiseScorer, then more sophisticated ScoreTabsWithPairwiseScorer is used for scoring. (2) The ScoreTabsWithPairwiseScorer puts all tabs without TabFeatures first, and then sort the result with MRU. After that, best candidate for each position j is picked one by one (3) In unit tests, we directly call ScoreTabsWithPairwiseScorer with type_ = kFrecencyScorer, so that the tests can be independent with the ML model. (This won't happen from public interface in real applications.) Bug: 999908 Change-Id: I85302cda11fc0fc754f5402fdacd1e3796a41b9e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1788774Reviewed-by:Charles . <charleszhao@chromium.org> Reviewed-by:
Tony Yeoman <tby@chromium.org> Commit-Queue: Charles . <charleszhao@chromium.org> Auto-Submit: Charles . <charleszhao@chromium.org> Cr-Commit-Position: refs/heads/master@{#695051}
Showing
Please register or sign in to comment