Emoji_v3a -- operands could not be broadcast together with shapes (50,) (2,) (50,)

Hi All,

Please help in removing the above error as mentioned in title "operands could not be broadcast together with shapes (50,) (2,) (50,) " while doing exercise (Week2 assignment 2).

Attaching the error snipshot. Please let me know if you need code as well.![Screen Shot 2021-08-24 at 1.32.17 PM|690x431](upload://cu73bIsuHyvrpn8OhwFZEOC0sy9.jpeg)

Hi @Ankit_Kumar ,

This query has been frequently posted on the forum. Here is one of them I found in the forum that you may find helpful.

HI @Kic I tried with the same but still getting same error. I think the word to map vector whatever we are creating is having some problem.

I tried with both ways:

  1. avg = np.zeros(word_to_vec_map[words[0]].shape)
    with this i am getting below error as shown in screenshot

2.avg = np.zeros((50,))
with this i am getting the above error as mentioned in title. Remaining everything is passed.

@Kic : I got the answer
Thanks you so much for help

Great to hear you have got it sorted. Thanks.