-
Notifications
You must be signed in to change notification settings - Fork 19.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IndexError #624
Comments
With this little info provided, not a chance... |
Updated info @fchollet |
graph.add_input(name='sequence', ndim=2)
graph.inputs['sequence'].input = T.imatrix() That is unnecessary, you can simply do: graph.add_input(name='sequence', ndim=2, dtype='int') As for your error: an Embedding layer now requires an input that is a Numpy integer matrix. What does your input look like? |
@fchollet changed X_train to numpy.matrix, same error still persists.
Error: |
Ok, I have enough info now, I'll look at it when I get some time. |
hm, try increasing max_features by 1. |
I have got the same error: C:\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\site-packages\keras-0.1.2-py2.7.egg\keras\models.pyc in fit(self, data, batch_size, nb_epoch, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight) C:\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\site-packages\keras-0.1.2-py2.7.egg\keras\models.pyc in _fit(self, f, ins, out_labels, batch_size, nb_epoch, verbose, callbacks, val_f, val_ins, shuffle, metrics) C:\WinPython-64bit-2.7.9.4\python-2.7.9.amd64\lib\site-packages\keras-0.1.2-py2.7.egg\keras\models.pyc in slice_X(X, start, stop) IndexError: index 3595 is out of bounds for axis 0 with size 1 |
I've seen this issue before. Sample weights which should default to an array of ones are not properly normalized with the Graph models. I have a simple fix. |
After upgrading to the latest version of Keras I get the following error when I try to use
graph.fit
on the model:Fitting the input:
On keras-0.1.2, works fine
On keras-0.1.3
IndexError: index 62887 is out of bounds for axis 0 with size 1
Full error:
Any idea what's going wrong?
The text was updated successfully, but these errors were encountered: