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

Issue 2753503002: [Predator] Fix weight flaky loglinear training test. (Closed)

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

Description

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -13 lines) Patch
M appengine/findit/crash/loglinear/test/weight_test.py View 1 chunk +6 lines, -6 lines 2 comments Download
M appengine/findit/crash/loglinear/weight.py View 1 chunk +11 lines, -7 lines 1 comment Download

Messages

Total messages: 12 (6 generated)
Sharu Jiang
Commit this simple fix first to prevent flaky tests.
3 years, 9 months ago (2017-03-14 03:56:36 UTC) #3
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/2753503002/1
3 years, 9 months ago (2017-03-14 03:56:55 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as https://chromium.googlesource.com/infra/infra/+/68e0dc8cc731ac339d136215e7f684a82a73ccc6
3 years, 9 months ago (2017-03-14 04:05:39 UTC) #8
stgao
code lgtm, but I still can't understand the flakiness with the fixing. https://codereview.chromium.org/2753503002/diff/1/appengine/findit/crash/loglinear/test/weight_test.py File appengine/findit/crash/loglinear/test/weight_test.py ...
3 years, 9 months ago (2017-03-14 04:34:33 UTC) #9
Sharu Jiang
https://codereview.chromium.org/2753503002/diff/1/appengine/findit/crash/loglinear/weight.py File appengine/findit/crash/loglinear/weight.py (left): https://codereview.chromium.org/2753503002/diff/1/appengine/findit/crash/loglinear/weight.py#oldcode85 appengine/findit/crash/loglinear/weight.py:85: assert len(self) == len(meta_feature), Exception( This assertion should be ...
3 years, 9 months ago (2017-03-14 05:06:13 UTC) #10
Sharu Jiang
3 years, 9 months ago (2017-03-14 05:09:17 UTC) #11
Message was sent while issue was closed.
https://codereview.chromium.org/2753503002/diff/1/appengine/findit/crash/logl...
File appengine/findit/crash/loglinear/test/weight_test.py (left):

https://codereview.chromium.org/2753503002/diff/1/appengine/findit/crash/logl...
appengine/findit/crash/loglinear/test/weight_test.py:63: with
self.assertRaisesRegexp(Exception,
On 2017/03/14 04:34:33, stgao (catching up) wrote:
> So you mentioned in the bug "when the trained weights have zeros, assertion
> exceptions will raise". But in this testcase, do we use randomly-generated
> trained weights? If not, I'm wondering how this became flaky? Is it because of
> precision issue in floating point wen compared to zero?

No, the flaky test is ``testTrainWeights`` in training_test.py. It is because
the training data set of loglinear model is randomly generated.

Powered by Google App Engine
This is Rietveld 408576698