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

Issue 2625073003: [Predator] Add MetaWeight and MetaFeatureValue to group multiple weights and features together. (Closed)

Created:
3 years, 11 months ago by Sharu Jiang
Modified:
3 years, 11 months ago
CC:
chromium-reviews, infra-reviews+infra_chromium.org, stgao, inferno
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

[Predator] Add MetaWeight and MetaFeatureValue to group multiple weights and features together. MetaWeight, MetaFeature and MetaFeatureValue inherit MetaDict, MetaDict is a dict-like class and its value can be an element or another dict. (e.g {'a': e(1), 'b': {'c': e(2), 'd': e(3)}}). MetaFeature allows features that share code (e.g. ``TouchCrashedFile``, ``MinDistance``, ``TopFrameIndex``) to be grouped together. In training MetaDictSerializer is used to serialize MetaWeight and MetaFeature to np arrays. BUG=679097 TBR=stgao@chromium.org Review-Url: https://codereview.chromium.org/2625073003 Committed: https://chromium.googlesource.com/infra/infra/+/6ca03f16713d70f5b1cc3696e556d839209ac0ee

Patch Set 1 #

Patch Set 2 : Fix nits. #

Total comments: 9

Patch Set 3 : Fix nits. #

Total comments: 2

Patch Set 4 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+796 lines, -353 lines) Patch
M appengine/findit/crash/findit.py View 1 chunk +1 line, -0 lines 0 comments Download
M appengine/findit/crash/findit_for_chromecrash.py View 1 chunk +2 lines, -0 lines 0 comments Download
M appengine/findit/crash/loglinear/changelist_classifier.py View 5 chunks +14 lines, -17 lines 0 comments Download
M appengine/findit/crash/loglinear/feature.py View 1 2 3 5 chunks +216 lines, -19 lines 0 comments Download
M appengine/findit/crash/loglinear/model.py View 1 2 3 12 chunks +51 lines, -157 lines 0 comments Download
M appengine/findit/crash/loglinear/test/changelist_classifier_test.py View 5 chunks +20 lines, -16 lines 0 comments Download
M appengine/findit/crash/loglinear/test/feature_test.py View 2 chunks +71 lines, -5 lines 0 comments Download
M appengine/findit/crash/loglinear/test/loglinear_testcase.py View 2 chunks +58 lines, -14 lines 0 comments Download
M appengine/findit/crash/loglinear/test/model_test.py View 4 chunks +18 lines, -53 lines 0 comments Download
M appengine/findit/crash/loglinear/test/training_test.py View 3 chunks +3 lines, -3 lines 0 comments Download
A appengine/findit/crash/loglinear/test/weight_test.py View 1 2 3 1 chunk +122 lines, -0 lines 0 comments Download
M appengine/findit/crash/loglinear/training.py View 8 chunks +65 lines, -67 lines 0 comments Download
A appengine/findit/crash/loglinear/weight.py View 1 2 1 chunk +130 lines, -0 lines 0 comments Download
M appengine/findit/libs/math/test/vectors_test.py View 2 chunks +20 lines, -1 line 0 comments Download
M appengine/findit/libs/math/vectors.py View 1 chunk +5 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 26 (17 generated)
Sharu Jiang
PTAL.
3 years, 11 months ago (2017-01-11 21:59:50 UTC) #3
Sharu Jiang
PTAL.
3 years, 11 months ago (2017-01-18 23:44:23 UTC) #11
chanli
https://codereview.chromium.org/2625073003/diff/100001/appengine/findit/crash/loglinear/feature.py File appengine/findit/crash/loglinear/feature.py (right): https://codereview.chromium.org/2625073003/diff/100001/appengine/findit/crash/loglinear/feature.py#newcode128 appengine/findit/crash/loglinear/feature.py:128: def __len__(self): Is this necessary? Since Element has the ...
3 years, 11 months ago (2017-01-19 04:26:06 UTC) #12
lijeffrey
lgtm but I don't have enough context for what this CL is for https://codereview.chromium.org/2625073003/diff/100001/appengine/findit/crash/loglinear/model.py File ...
3 years, 11 months ago (2017-01-19 15:23:35 UTC) #13
Sharu Jiang
https://codereview.chromium.org/2625073003/diff/100001/appengine/findit/crash/loglinear/feature.py File appengine/findit/crash/loglinear/feature.py (right): https://codereview.chromium.org/2625073003/diff/100001/appengine/findit/crash/loglinear/feature.py#newcode128 appengine/findit/crash/loglinear/feature.py:128: def __len__(self): On 2017/01/19 04:26:06, chanli wrote: > Is ...
3 years, 11 months ago (2017-01-19 23:49:52 UTC) #14
chanli
lgtm
3 years, 11 months ago (2017-01-22 00:01:28 UTC) #15
Martin Barbella
lgtm https://codereview.chromium.org/2625073003/diff/120001/appengine/findit/crash/loglinear/changelist_classifier.py File appengine/findit/crash/loglinear/changelist_classifier.py (right): https://codereview.chromium.org/2625073003/diff/120001/appengine/findit/crash/loglinear/changelist_classifier.py#newcode140 appengine/findit/crash/loglinear/changelist_classifier.py:140: # features is ``MetaFeatureValue`` object containing all feature ...
3 years, 11 months ago (2017-01-23 21:04:12 UTC) #16
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/2625073003/160001
3 years, 11 months ago (2017-01-24 01:37:52 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 01:47:54 UTC) #26
Message was sent while issue was closed.
Committed patchset #4 (id:160001) as
https://chromium.googlesource.com/infra/infra/+/6ca03f16713d70f5b1cc3696e556d...

Powered by Google App Engine
This is Rietveld 408576698