

def test_FitHybrid(self):
    for t in SPARSE_TYPES:
        sparse_matrix = getattr(scipy.sparse, t)
        X = sparse_matrix((8, 4), dtype=numpy.float32)
        y = numpy.zeros((8, 4), dtype=numpy.float32)
        self.nn._fit(X, y)

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