Named-Entity-Recognition_DeepLearning-keras icon indicating copy to clipboard operation
Named-Entity-Recognition_DeepLearning-keras copied to clipboard

InvalidArgumentError: Incompatible shapes: [1600] vs. [32,50]

Open eshijia opened this issue 6 years ago • 5 comments

When I ran the notebook, I encountered an error InvalidArgumentError: Incompatible shapes: [1600] vs. [32,50]. I think the input shape in your code is correct. Why is that error still happening?

eshijia avatar Jan 16 '19 05:01 eshijia

I get the same issue running nre.py. Anyone solve this?

cbowdon avatar Feb 12 '19 11:02 cbowdon

metric=['accuracy'] does the problem. After removed or changed to some custom metric it get fixed. I dont know why 'accuracy' cause the problem tho.

elixium avatar Feb 19 '19 06:02 elixium

@elixium thanks. We moved on to a better supported library in the end.

cbowdon avatar Feb 22 '19 12:02 cbowdon

I am getting this error Incompatible shapes: [1600] vs. [32,50] [[{{node metrics/acc/Equal}}]]

Please help!

annapurnarelan20 avatar Jun 27 '19 09:06 annapurnarelan20

Update Keras to the latest version, it is Keras bug https://github.com/keras-team/keras/issues/11749

VivekWisdom avatar Sep 19 '19 11:09 VivekWisdom