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

Issue 2517383005: Implementing loglinear classification (without training), for CL classification (Closed)

Created:
4 years, 1 month ago by wrengr
Modified:
4 years ago
CC:
chromium-reviews, infra-reviews+infra_chromium.org, aarya, stgao
Target Ref:
refs/heads/master
Project:
infra
Visibility:
Public.

Description

Implementing loglinear models, for CL classification This CL adds an implementation of loglinear probability models, and translates the ./crash/scorers into feature functions for use with those models. It does not, however, put LLMs in place for being used as the primary algorithm for CL classification just yet. That should be done in a separate CL accompanied by delta testing to ensure it is as effective as we'd like. BUG= TBR=stgao@chromium.org Committed: https://chromium.googlesource.com/infra/infra/+/0f32beb2e7fb069726d9f856b9af55463d5c38ce

Patch Set 1 : Breaking apart the CL #

Patch Set 2 : rebase #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase #

Patch Set 6 : linting #

Patch Set 7 : coverage tests for loglinear.py #

Patch Set 8 : adding tests for MinDistanceFeature #

Patch Set 9 : adding more tests #

Patch Set 10 : rebase #

Total comments: 28

Patch Set 11 : Removed the changelist_features directory for this CL. Will re-add in another CL #

Patch Set 12 : addressing nits #

Patch Set 13 : breaking apart normalized and unnormalized models #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -4 lines) Patch
A appengine/findit/crash/loglinear.py View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +302 lines, -0 lines 2 comments Download
M appengine/findit/crash/results.py View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
A appengine/findit/crash/test/loglinear_test.py View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +73 lines, -0 lines 0 comments Download
M appengine/findit/libs/math/functions.py View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M appengine/findit/libs/math/test/functions_test.py View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 31 (14 generated)
wrengr
Here's a preliminary version of the CL. I still have to write the unittests, and ...
4 years ago (2016-12-01 00:49:52 UTC) #7
Sharu Jiang
Reviewing, however I still have several questions in the doc, can you help me answer ...
4 years ago (2016-12-01 18:51:07 UTC) #8
wrengr
Looking at the doc comments now https://codereview.chromium.org/2517383005/diff/40001/appengine/findit/crash/changelist_classifier_features/__init__.py File appengine/findit/crash/changelist_classifier_features/__init__.py (right): https://codereview.chromium.org/2517383005/diff/40001/appengine/findit/crash/changelist_classifier_features/__init__.py#newcode1 appengine/findit/crash/changelist_classifier_features/__init__.py:1: # Copyright 2016 ...
4 years ago (2016-12-01 19:08:09 UTC) #9
Martin Barbella
Could you post the link to the doc here?
4 years ago (2016-12-01 22:25:51 UTC) #10
wrengr
On 2016/12/01 22:25:51, Martin Barbella wrote: > Could you post the link to the doc ...
4 years ago (2016-12-01 22:28:15 UTC) #11
wrengr
I've uploaded a version of loglinear_test.py which gets 100% coverage, but it's terrible as actual ...
4 years ago (2016-12-02 23:34:11 UTC) #14
wrengr
Added more tests. This CL is ready to be reviewed now. PTAL
4 years ago (2016-12-05 20:57:22 UTC) #16
inferno
lgtm with nits. Sharu - can you take a look at this as well. https://codereview.chromium.org/2517383005/diff/240001/appengine/findit/crash/changelist_features/min_distance.py ...
4 years ago (2016-12-06 18:07:06 UTC) #18
Sharu Jiang
Publish some reviews first, still need to take a further look. https://codereview.chromium.org/2517383005/diff/240001/appengine/findit/crash/changelist_features/min_distance.py File appengine/findit/crash/changelist_features/min_distance.py (right): ...
4 years ago (2016-12-06 20:49:20 UTC) #19
Sharu Jiang
https://codereview.chromium.org/2517383005/diff/240001/appengine/findit/crash/loglinear.py File appengine/findit/crash/loglinear.py (right): https://codereview.chromium.org/2517383005/diff/240001/appengine/findit/crash/loglinear.py#newcode69 appengine/findit/crash/loglinear.py:69: self._Y = frozenset(Y) Instead of passing all Y(changelogs) into ...
4 years ago (2016-12-07 00:05:07 UTC) #20
wrengr
https://codereview.chromium.org/2517383005/diff/240001/appengine/findit/crash/changelist_features/test/min_distance_test.py File appengine/findit/crash/changelist_features/test/min_distance_test.py (right): https://codereview.chromium.org/2517383005/diff/240001/appengine/findit/crash/changelist_features/test/min_distance_test.py#newcode13 appengine/findit/crash/changelist_features/test/min_distance_test.py:13: class MinDistanceTest(ScorerTestSuite): On 2016/12/06 20:49:19, Sharu Jiang wrote: > ...
4 years ago (2016-12-07 00:55:38 UTC) #21
wrengr
I've uploaded a new version which (a) breaks the LogLinearModel class into two based on ...
4 years ago (2016-12-07 01:22:21 UTC) #22
Sharu Jiang
https://codereview.chromium.org/2517383005/diff/240001/appengine/findit/crash/loglinear.py File appengine/findit/crash/loglinear.py (right): https://codereview.chromium.org/2517383005/diff/240001/appengine/findit/crash/loglinear.py#newcode24 appengine/findit/crash/loglinear.py:24: def _FeatureFunction(x): On 2016/12/07 00:55:38, wrengr wrote: > On ...
4 years ago (2016-12-07 18:40:04 UTC) #23
wrengr
https://codereview.chromium.org/2517383005/diff/300001/appengine/findit/crash/loglinear.py File appengine/findit/crash/loglinear.py (right): https://codereview.chromium.org/2517383005/diff/300001/appengine/findit/crash/loglinear.py#newcode194 appengine/findit/crash/loglinear.py:194: class LogLinearModel(UnnormalizedLogLinearModel): On 2016/12/07 18:40:04, Sharu Jiang wrote: > ...
4 years ago (2016-12-08 20:09:07 UTC) #24
Sharu Jiang
lgtm
4 years ago (2016-12-08 20:45:30 UTC) #25
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/2517383005/300001
4 years ago (2016-12-08 20:46:20 UTC) #28
commit-bot: I haz the power
4 years ago (2016-12-08 21:01:41 UTC) #31
Message was sent while issue was closed.
Committed patchset #13 (id:300001) as
https://chromium.googlesource.com/infra/infra/+/0f32beb2e7fb069726d9f856b9af5...

Powered by Google App Engine
This is Rietveld 408576698