You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 10, 2021. It is now read-only.
Traceback (most recent call last):
File "/home/lj/scikit-neuralnetwork/sknn/tests/test_types.py", line 132, in test_FitError
assert_raises((TypeError, NotImplementedError), self.nn._fit, X, y)
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(_args, *_kwargs)
File "/home/lj/scikit-neuralnetwork/sknn/mlp.py", line 210, in _fit
X, y = self._reshape(X, y)
File "/home/lj/scikit-neuralnetwork/sknn/mlp.py", line 121, in _reshape
X = X.reshape((X.shape[0], int(size), int(size), 1))
File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/lil.py", line 421, in reshape
raise ValueError("a length-2 tuple must be passed in for 'shape'")
ValueError: a length-2 tuple must be passed in for 'shape'
when I run the 'nosetests -v sknn.tests', I got the upper error .Just one error. But I don't know how to modify the code. What should I do to correct this error? Thank you very much.
The text was updated successfully, but these errors were encountered:
ERROR: test_FitError (sknn.tests.test_types.TestConvolution)
Traceback (most recent call last):
File "/home/lj/scikit-neuralnetwork/sknn/tests/test_types.py", line 132, in test_FitError
assert_raises((TypeError, NotImplementedError), self.nn._fit, X, y)
File "/usr/lib/python2.7/unittest/case.py", line 473, in assertRaises
callableObj(_args, *_kwargs)
File "/home/lj/scikit-neuralnetwork/sknn/mlp.py", line 210, in _fit
X, y = self._reshape(X, y)
File "/home/lj/scikit-neuralnetwork/sknn/mlp.py", line 121, in _reshape
X = X.reshape((X.shape[0], int(size), int(size), 1))
File "/usr/local/lib/python2.7/dist-packages/scipy/sparse/lil.py", line 421, in reshape
raise ValueError("a length-2 tuple must be passed in for 'shape'")
ValueError: a length-2 tuple must be passed in for 'shape'
when I run the 'nosetests -v sknn.tests', I got the upper error .Just one error. But I don't know how to modify the code. What should I do to correct this error? Thank you very much.
The text was updated successfully, but these errors were encountered: