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

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

Issue 2617273002: [Predator] Move ``SingleFeatureScore`` to LLM. (Closed)
Patch Set: . Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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 734a7ab52ba108076a8c2b6408ba48125114bf63..7756a90f9fbdd3662b6e5b6d8728d8daa498410f 100644
--- a/appengine/findit/crash/loglinear/test/loglinear_testcase.py
+++ b/appengine/findit/crash/loglinear/test/loglinear_testcase.py
@@ -45,3 +45,6 @@ class LoglinearTestCase(unittest.TestCase): # pragma: no cover
self._X = range(10)
self._Y = lambda _x: [False, True]
self._weights = [random.random() for _ in xrange(self._qty_features)]
+ self._feature_to_weight = {'feature0': self._weights[0],
+ 'feature1': self._weights[1],
+ 'feature2': self._weights[2]}

Powered by Google App Engine
This is Rietveld 408576698