Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

error: #4

Closed
Pooja-Palod opened this issue Oct 8, 2017 · 2 comments
Closed

error: #4

Pooja-Palod opened this issue Oct 8, 2017 · 2 comments

Comments

@Pooja-Palod
Copy link

File "test.py", line 82, in
print "categorical accuracy: ", categorical_accuracy( YY_test, p ).eval()
File "/usr/local/lib/python2.7/dist-packages/keras/metrics.py", line 10, in categorical_accuracy
return K.mean(K.equal(K.argmax(y_true, axis=-1),
File "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 523, in argmax
axis = axis % len(x.get_shape())
AttributeError: 'numpy.ndarray' object has no attribute 'get_shape'

@Brucefan1994
Copy link

Why do not i have _time_distributed_dense module from keras.layers.recurrent? Please answer it if you have free time,thank you!

@zygmuntz
Copy link
Owner

Probably a different Keras version, try Keras 2 branch:
https://github.com/zygmuntz/pointer-networks-experiments/tree/keras-2.0

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants