[Dolphin] Refactor to make predictors ID-based rather than string-based.
This CL makes modifications to the architecture of the RecurrenceRanker and RecurrencePredictor to: 1. Allow for better API support for targets and conditions. 2. Store all target and condition strings in the Ranker, and only pass IDs to the predictors. 3. Modify the ZeroStateFrecencyPredictor to work with IDs instead of strings. This will have several follow-up CLs: 1. UMA logging for various error cases, eg. proto serialisation errors. 2. Cleanup logic for the ZeroStateFrecencyPredictor. 3. A general conditional predictor for use with query-based predictions. Change-Id: I86e38c28738adf7d5115d1dcd3b5953fab739ebf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1534583Reviewed-by:Charles . <charleszhao@chromium.org> Commit-Queue: Charles . <charleszhao@chromium.org> Cr-Commit-Position: refs/heads/master@{#659268}
Showing
Please register or sign in to comment