Mercurial > pylearn
diff pylearn/algorithms/tests/test_regressor.py @ 1506:2f69c9932d9a
Fix test in float32.
author | Frederic Bastien <nouiz@nouiz.org> |
---|---|
date | Mon, 12 Sep 2011 10:56:38 -0400 |
parents | f7957524f76e |
children |
line wrap: on
line diff
--- a/pylearn/algorithms/tests/test_regressor.py Mon Sep 12 10:49:15 2011 -0400 +++ b/pylearn/algorithms/tests/test_regressor.py Mon Sep 12 10:56:38 2011 -0400 @@ -21,7 +21,7 @@ R = numpy.random.RandomState(100) t1 = time.time() for i in xrange(1001): - data = R.random_integers(0, 1, size = (10, 100)) + data = R.random_integers(0, 1, size = (10, 100)).astype(theano.config.floatX) targets = data[:, 6].reshape((10, 1)) cost = model.update(data, targets) if i % 100 == 0: