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

Side by Side Diff: dashboard/dashboard/pinpoint/models/job.py

Issue 3019503002: [pinpoint] Move mann_whitney_u.py to models/ (Closed)
Patch Set: Created 3 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 1 # Copyright 2016 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import collections 5 import collections
6 import logging 6 import logging
7 import os 7 import os
8 import traceback 8 import traceback
9 9
10 from google.appengine.api import taskqueue 10 from google.appengine.api import taskqueue
11 from google.appengine.ext import ndb 11 from google.appengine.ext import ndb
12 12
13 from dashboard.common import utils 13 from dashboard.common import utils
14 from dashboard.pinpoint import mann_whitney_u
15 from dashboard.pinpoint.models import attempt as attempt_module 14 from dashboard.pinpoint.models import attempt as attempt_module
16 from dashboard.pinpoint.models import change as change_module 15 from dashboard.pinpoint.models import change as change_module
16 from dashboard.pinpoint.models import mann_whitney_u
17 from dashboard.services import gitiles_service 17 from dashboard.services import gitiles_service
18 from dashboard.services import issue_tracker_service 18 from dashboard.services import issue_tracker_service
19 19
20 20
21 # We want this to be fast to minimize overhead while waiting for tasks to 21 # We want this to be fast to minimize overhead while waiting for tasks to
22 # finish, but don't want to consume too many resources. 22 # finish, but don't want to consume too many resources.
23 _TASK_INTERVAL = 10 23 _TASK_INTERVAL = 10
24 24
25 25
26 _DEFAULT_REPEAT_COUNT = 15 26 _DEFAULT_REPEAT_COUNT = 15
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 386
387 try: 387 try:
388 p_value = mann_whitney_u.MannWhitneyU(values_a, values_b) 388 p_value = mann_whitney_u.MannWhitneyU(values_a, values_b)
389 except ValueError: 389 except ValueError:
390 return _UNKNOWN 390 return _UNKNOWN
391 391
392 if p_value < _SIGNIFICANCE_LEVEL: 392 if p_value < _SIGNIFICANCE_LEVEL:
393 return _DIFFERENT 393 return _DIFFERENT
394 else: 394 else:
395 return _UNKNOWN 395 return _UNKNOWN
OLDNEW
« no previous file with comments | « dashboard/dashboard/pinpoint/mann_whitney_u_test.py ('k') | dashboard/dashboard/pinpoint/models/mann_whitney_u.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698