Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Issue 2599293002: [NTP::SectionOrder] Implement click counts decay. (Closed)

Created:
3 years, 12 months ago by vitaliii
Modified:
3 years, 11 months ago
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, tschumann
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[NTP::SectionOrder] Implement click counts decay. The click based ranker must "forget" history with time, so that changes in the user behavior are reflected by the order in reasonable time. This is done in thic CL using multiplicative click count decay with time. Count overflow is ignored (it is unlikely to happen due to the decay) and a comment is added. BUG=675918, 676279 Committed: https://crrev.com/1e8492aea8959ffaf818bb05f28368e524505ab7 Cr-Commit-Position: refs/heads/master@{#441353}

Patch Set 1 #

Total comments: 28

Patch Set 2 : rebase. #

Patch Set 3 : rebase. #

Patch Set 4 : tschumann@ comments. #

Total comments: 10

Patch Set 5 : rebase. #

Patch Set 6 : jkrcal@ comments. #

Total comments: 4

Patch Set 7 : jkrcal@ comments. #

Total comments: 8

Patch Set 8 : rebase. #

Patch Set 9 : jkrcal@ & tschumann@ comments. #

Patch Set 10 : added "For testing only." to a function comment. #

Total comments: 8

Patch Set 11 : rebase. #

Patch Set 12 : tschumann@ nits. #

Patch Set 13 : rebase. #

Patch Set 14 : tschumann@ comment. #

Patch Set 15 : ios factory. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+229 lines, -16 lines) Patch
M chrome/browser/ntp_snippets/content_suggestions_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -1 line 0 comments Download
M components/ntp_snippets/category_rankers/click_based_category_ranker.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +15 lines, -2 lines 0 comments Download
M components/ntp_snippets/category_rankers/click_based_category_ranker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +96 lines, -5 lines 0 comments Download
M components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +97 lines, -4 lines 0 comments Download
M components/ntp_snippets/features.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -1 line 0 comments Download
M components/ntp_snippets/features.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M components/ntp_snippets/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/ntp_snippets/pref_names.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/browser/ntp_snippets/ios_chrome_content_suggestions_service_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 68 (44 generated)
vitaliii
tschumann@, FYI.
3 years, 12 months ago (2016-12-23 10:38:26 UTC) #3
tschumann
cool! https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode46 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:46: // no need in "forgetting" it. This value ...
3 years, 12 months ago (2016-12-23 12:49:11 UTC) #7
vitaliii
Hi tschumann@, I addressed your comments, PTAL. https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode46 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:46: // no ...
3 years, 11 months ago (2016-12-29 15:35:27 UTC) #8
vitaliii
Hi jkrcal@, PTAL.
3 years, 11 months ago (2016-12-29 15:35:51 UTC) #12
jkrcal
https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode135 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:135: base::CheckedNumeric<int> checked_clicks = current->clicks; On 2016/12/29 15:35:26, vitaliii wrote: ...
3 years, 11 months ago (2017-01-02 10:06:37 UTC) #15
vitaliii
Hi jkrcal@, I addressed your comments, please have a look. https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode135 ...
3 years, 11 months ago (2017-01-02 13:36:22 UTC) #17
jkrcal
https://codereview.chromium.org/2599293002/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2599293002/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode319 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:319: old_clicks * kDecayFactorNumerator / kDecayFactorDenominator; On 2017/01/02 13:36:21, vitaliii ...
3 years, 11 months ago (2017-01-02 15:01:21 UTC) #22
vitaliii
Hi jkrcal@, I addressed your comments, PTAL. https://codereview.chromium.org/2599293002/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2599293002/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode319 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:319: old_clicks * ...
3 years, 11 months ago (2017-01-02 15:58:54 UTC) #25
vitaliii
Hi jkrcal@, I addressed your comments, PTAL. https://codereview.chromium.org/2599293002/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2599293002/diff/60001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode319 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:319: old_clicks * ...
3 years, 11 months ago (2017-01-02 15:58:55 UTC) #26
jkrcal
lgtm (modulo general reservations about the metric being integer based which is beyond the scope ...
3 years, 11 months ago (2017-01-03 08:25:56 UTC) #29
tschumann
https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.h File components/ntp_snippets/category_rankers/click_based_category_ranker.h (right): https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.h#newcode40 components/ntp_snippets/category_rankers/click_based_category_ranker.h:40: void SetClockForTesting(std::unique_ptr<base::Clock> clock); On 2017/01/02 13:36:21, vitaliii wrote: > ...
3 years, 11 months ago (2017-01-03 09:27:05 UTC) #30
tschumann
https://codereview.chromium.org/2599293002/diff/120001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc File components/ntp_snippets/category_rankers/click_based_category_ranker.cc (right): https://codereview.chromium.org/2599293002/diff/120001/components/ntp_snippets/category_rankers/click_based_category_ranker.cc#newcode325 components/ntp_snippets/category_rankers/click_based_category_ranker.cc:325: if (executed_decays) { please explicitly compare "> 0". Even ...
3 years, 11 months ago (2017-01-03 09:31:17 UTC) #31
vitaliii
Hi tschumann@, I addressed your comments, PTAL! (jkrcal@, no need to look). https://codereview.chromium.org/2599293002/diff/1/components/ntp_snippets/category_rankers/click_based_category_ranker.h File components/ntp_snippets/category_rankers/click_based_category_ranker.h ...
3 years, 11 months ago (2017-01-03 15:07:19 UTC) #34
tschumann
lgtm with a few nits. Once addressed, feel free to submit. https://codereview.chromium.org/2599293002/diff/120001/components/ntp_snippets/category_rankers/click_based_category_ranker.h File components/ntp_snippets/category_rankers/click_based_category_ranker.h (right): ...
3 years, 11 months ago (2017-01-03 17:52:33 UTC) #41
vitaliii
Hi tschumann@, I addressed your nits, no need to look. https://codereview.chromium.org/2599293002/diff/120001/components/ntp_snippets/category_rankers/click_based_category_ranker.h File components/ntp_snippets/category_rankers/click_based_category_ranker.h (right): https://codereview.chromium.org/2599293002/diff/120001/components/ntp_snippets/category_rankers/click_based_category_ranker.h#newcode40 ...
3 years, 11 months ago (2017-01-04 08:08:54 UTC) #44
tschumann
https://codereview.chromium.org/2599293002/diff/180001/components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc File components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc (right): https://codereview.chromium.org/2599293002/diff/180001/components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc#newcode58 components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc:58: void ResetRanker() { On 2017/01/04 08:08:54, vitaliii wrote: > ...
3 years, 11 months ago (2017-01-04 08:19:54 UTC) #45
vitaliii
Hi tschumann@, I addressed your comment, no need to look. https://codereview.chromium.org/2599293002/diff/180001/components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc File components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc (right): https://codereview.chromium.org/2599293002/diff/180001/components/ntp_snippets/category_rankers/click_based_category_ranker_unittest.cc#newcode58 ...
3 years, 11 months ago (2017-01-04 08:39:38 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2599293002/260001
3 years, 11 months ago (2017-01-04 08:40:11 UTC) #51
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/131060)
3 years, 11 months ago (2017-01-04 08:46:25 UTC) #53
vitaliii
Hi noyau@, Could you have a look at ios factory change?
3 years, 11 months ago (2017-01-04 09:21:42 UTC) #55
noyau (Ping after 24h)
ios lgtm
3 years, 11 months ago (2017-01-04 10:47:48 UTC) #60
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2599293002/280001
3 years, 11 months ago (2017-01-04 10:49:25 UTC) #63
commit-bot: I haz the power
Committed patchset #15 (id:280001)
3 years, 11 months ago (2017-01-04 10:53:48 UTC) #66
commit-bot: I haz the power
3 years, 11 months ago (2017-01-04 10:56:18 UTC) #68
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/1e8492aea8959ffaf818bb05f28368e524505ab7
Cr-Commit-Position: refs/heads/master@{#441353}

Powered by Google App Engine
This is Rietveld 408576698