

def test_Predict32(self):
    theano.config.floatX = 'float32'
    for t in SPARSE_TYPES:
        sparse_matrix = getattr(scipy.sparse, t)
        X = sparse_matrix((8, 4), dtype=numpy.float32)
        yp = self.nn._predict(X)
        assert_equal(yp.dtype, numpy.float32)

dataset/ETHPy150Open aigamedev/scikit-neuralnetwork/sknn/tests/test_types.py TestScipySparseMatrix.test_Predict32/original