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

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

Issue 2617273002: [Predator] Move ``SingleFeatureScore`` to LLM. (Closed)
Patch Set: Update doc strs. 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/training_test.py
diff --git a/appengine/findit/crash/loglinear/test/training_test.py b/appengine/findit/crash/loglinear/test/training_test.py
index afb8ecc5fb9297b82312cfdd0de11673f749e68f..db4ad2ffe43c9fdc31f04b121775c514f795dfab 100644
--- a/appengine/findit/crash/loglinear/test/training_test.py
+++ b/appengine/findit/crash/loglinear/test/training_test.py
@@ -4,7 +4,6 @@
import numpy as np
-from crash.loglinear.model import ToFeatureFunction
from crash.loglinear.training import TrainableLogLinearModel
from crash.loglinear.test.loglinear_testcase import LoglinearTestCase
@@ -35,14 +34,6 @@ class TrainableLogLinearModelTest(LoglinearTestCase):
self.assertRaises(TypeError, _WeightSettingExpression)
- def testWeightsSetterShapeMismatch(self):
- def _WeightSettingExpression():
- """Wrap the ``self._model.weights = stuff`` expression."""
- # This np.ndarray has the wrong shape.
- self._model.weights = np.array([[1,2], [3,4]])
-
- self.assertRaises(TypeError, _WeightSettingExpression)
-
def testTrainWeights(self):
"""Tests that ``TrainWeights`` actually improves the loglikelihood.

Powered by Google App Engine
This is Rietveld 408576698