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

Unified Diff: appengine/findit/crash/loglinear/test/loglinear_testcase.py

Issue 2595263003: [Predator] Making the Y sets conditional for loglinear models (Closed)
Patch Set: minor clarification in crash/suspect.py Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/crash/loglinear/model.py ('k') | appengine/findit/crash/loglinear/test/model_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/crash/loglinear/test/loglinear_testcase.py
diff --git a/appengine/findit/crash/loglinear/test/loglinear_testcase.py b/appengine/findit/crash/loglinear/test/loglinear_testcase.py
index edf0fe8f567ca146374b38fdbb8a160c79bbf834..734a7ab52ba108076a8c2b6408ba48125114bf63 100644
--- a/appengine/findit/crash/loglinear/test/loglinear_testcase.py
+++ b/appengine/findit/crash/loglinear/test/loglinear_testcase.py
@@ -43,5 +43,5 @@ class LoglinearTestCase(unittest.TestCase): # pragma: no cover
self._feature_function = ToFeatureFunction(self._feature_list)
self._qty_features = len(self._feature_list)
self._X = range(10)
- self._Y = [False, True]
+ self._Y = lambda _x: [False, True]
self._weights = [random.random() for _ in xrange(self._qty_features)]
« no previous file with comments | « appengine/findit/crash/loglinear/model.py ('k') | appengine/findit/crash/loglinear/test/model_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698