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

Issue 2925733002: Move ranker_model_loader to a new component. (Closed)

Created:
3 years, 6 months ago by hamelphi
Modified:
3 years, 5 months ago
CC:
chromium-reviews, blundell+watchlist_chromium.org, sdefresne+watchlist_chromium.org, droger+watchlist_chromium.org, napper
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Move ranker_model_loader to a new component. This change should not incur any behavior change. It moves the RankerModelLoader code from components/translate to a new component. The ModelLoader (and other parts of Ranker) will be re-used by contextual_search (and probably other components eventually). The plan for the machine_intelligence component is that it will hold the code for machine intelligence features in Chrome. In the short term, we plan to put the Ranker code here (go/chromeranker), including the ModelLoader, example logging and model inference. The ModelLoader is the first part to be moved out of Translate, since it is already ready for re-use by other components (e.g. Contextual Search). Other parts will need to be refactored first before we move them out of the Translate component. BUG=731845 Review-Url: https://codereview.chromium.org/2925733002 Cr-Commit-Position: refs/heads/master@{#482754} Committed: https://chromium.googlesource.com/chromium/src/+/97b0ab02964dac76c919c24cac8b50ad1141cd24

Patch Set 1 #

Total comments: 8

Patch Set 2 : Get request context from TranslateDownloadmanager. #

Patch Set 3 : Move component to machine_intelligence. #

Patch Set 4 : Use sequence_checker macros. #

Patch Set 5 : Add NetworkTrafficAnnotation. #

Patch Set 6 : Update translate_url_fetcher annotation. #

Patch Set 7 : Fix Build dependencies. #

Total comments: 6

Patch Set 8 : Adressing sdefresne's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+345 lines, -1286 lines) Patch
M components/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/data_use_measurement/core/data_use_user_data.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/data_use_measurement/core/data_use_user_data.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A components/machine_intelligence/BUILD.gn View 1 2 1 chunk +39 lines, -0 lines 0 comments Download
A components/machine_intelligence/DEPS View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A components/machine_intelligence/OWNERS View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A + components/machine_intelligence/proto/BUILD.gn View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + components/machine_intelligence/proto/ranker_model.proto View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + components/machine_intelligence/proto/translate_ranker_model.proto View 1 2 1 chunk +1 line, -1 line 0 comments Download
A + components/machine_intelligence/ranker_model.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -6 lines 0 comments Download
A + components/machine_intelligence/ranker_model.cc View 1 2 2 chunks +4 lines, -4 lines 0 comments Download
A + components/machine_intelligence/ranker_model_loader.h View 1 2 3 4 10 chunks +21 lines, -20 lines 0 comments Download
A + components/machine_intelligence/ranker_model_loader.cc View 1 2 3 12 chunks +25 lines, -28 lines 0 comments Download
A + components/machine_intelligence/ranker_model_loader_unittest.cc View 1 2 3 4 5 7 chunks +12 lines, -23 lines 0 comments Download
A + components/machine_intelligence/ranker_model_unittest.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
A components/machine_intelligence/ranker_url_fetcher.h View 1 2 3 4 5 6 7 1 chunk +77 lines, -0 lines 0 comments Download
A components/machine_intelligence/ranker_url_fetcher.cc View 1 2 3 4 1 chunk +109 lines, -0 lines 0 comments Download
M components/translate/core/browser/BUILD.gn View 1 2 3 4 5 6 7 4 chunks +4 lines, -8 lines 0 comments Download
M components/translate/core/browser/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
D components/translate/core/browser/proto/BUILD.gn View 1 chunk +0 lines, -12 lines 0 comments Download
D components/translate/core/browser/proto/ranker_model.proto View 1 chunk +0 lines, -49 lines 0 comments Download
D components/translate/core/browser/proto/translate_ranker_model.proto View 1 chunk +0 lines, -46 lines 0 comments Download
D components/translate/core/browser/ranker_model.h View 1 chunk +0 lines, -46 lines 0 comments Download
D components/translate/core/browser/ranker_model.cc View 1 chunk +0 lines, -54 lines 0 comments Download
D components/translate/core/browser/ranker_model_loader.h View 1 chunk +0 lines, -195 lines 0 comments Download
D components/translate/core/browser/ranker_model_loader.cc View 1 chunk +0 lines, -309 lines 0 comments Download
D components/translate/core/browser/ranker_model_loader_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -370 lines 0 comments Download
D components/translate/core/browser/ranker_model_unittest.cc View 1 chunk +0 lines, -76 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl.h View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl.cc View 1 2 3 4 5 3 chunks +11 lines, -8 lines 0 comments Download
M components/translate/core/browser/translate_ranker_impl_unittest.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M components/translate/core/browser/translate_url_fetcher.cc View 1 2 3 4 5 2 chunks +10 lines, -18 lines 0 comments Download
M tools/metrics/histograms/enums.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 43 (27 generated)
Roger McFarlane (Chromium)
Nice. I think I prefer intelligence to ranker as a component/namespace identifier. Ranker is both ...
3 years, 6 months ago (2017-06-06 09:48:31 UTC) #2
hamelphi
Changed the component name to machine_intelligence. Still a few FIXMEs to take care of, but ...
3 years, 6 months ago (2017-06-09 18:49:15 UTC) #3
hamelphi
Ready for full review. Roger PTAL.
3 years, 6 months ago (2017-06-09 19:43:37 UTC) #6
Roger McFarlane (Chromium)
I think the url request annotation in translate_url_fetcher.cc needs to be updated to no longer ...
3 years, 6 months ago (2017-06-14 15:59:43 UTC) #7
hamelphi
3 years, 6 months ago (2017-06-15 20:11:42 UTC) #22
groby-ooo-7-16
lgtm
3 years, 6 months ago (2017-06-15 21:05:10 UTC) #25
sdefresne
lgtm with comments https://codereview.chromium.org/2925733002/diff/120001/components/machine_intelligence/ranker_model.h File components/machine_intelligence/ranker_model.h (right): https://codereview.chromium.org/2925733002/diff/120001/components/machine_intelligence/ranker_model.h#newcode43 components/machine_intelligence/ranker_model.h:43: } // namesapce ranker namesapce → ...
3 years, 6 months ago (2017-06-23 16:18:45 UTC) #26
hamelphi
https://codereview.chromium.org/2925733002/diff/120001/components/machine_intelligence/ranker_model.h File components/machine_intelligence/ranker_model.h (right): https://codereview.chromium.org/2925733002/diff/120001/components/machine_intelligence/ranker_model.h#newcode43 components/machine_intelligence/ranker_model.h:43: } // namesapce ranker On 2017/06/23 16:18:44, sdefresne wrote: ...
3 years, 5 months ago (2017-06-27 18:15:09 UTC) #27
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/2925733002/140001
3 years, 5 months ago (2017-06-27 18:18:47 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/475139)
3 years, 5 months ago (2017-06-27 18:27:18 UTC) #32
hamelphi
On 2017/06/27 18:27:18, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 5 months ago (2017-06-27 18:30:21 UTC) #34
hamelphi
On 2017/06/27 18:30:21, hamelphi wrote: > On 2017/06/27 18:27:18, commit-bot: I haz the power wrote: ...
3 years, 5 months ago (2017-06-27 19:10:02 UTC) #36
mmenke
Rubberstamp LGTM, since this is a move.
3 years, 5 months ago (2017-06-27 19:44:32 UTC) #37
Alexei Svitkine (slow)
histograms.xml lgtm
3 years, 5 months ago (2017-06-27 20:48:04 UTC) #38
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/2925733002/140001
3 years, 5 months ago (2017-06-27 21:36:23 UTC) #40
commit-bot: I haz the power
3 years, 5 months ago (2017-06-27 21:42:23 UTC) #43
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/97b0ab02964dac76c919c24cac8b...

Powered by Google App Engine
This is Rietveld 408576698