Hi,
I am trying to submit my emojify assignment but I keep on getting a score of zero.
When I run the code in my browser, I don’t get any errors and it shows all tests passed. Still I am getting a score of zero.
I get this in grader output -
Cell #14. Can’t compile the student’s code. Error: ValueError('operands could not be broadcast together with shapes (5,2) (5,) ',)
Please help me out with this.
Also, the course content is awesome, thanks for it .
The problem turned out to be that I shortened some lines. I rewrote it in good order and it all passed. Try updating the task to the original one (get latest version) and carefully fill in the missing lines.
I found the bug in my code, instead of hardcoding avg in avg_to_sentence function you should pass any_word (which is already calculated) to word_to_vec_map followed by .shape method to word_to_vec_map and wrap the whole in np.zeros