C5W2 Cell #14. Can't compile the student's code. Error: KeyError('never',)

Error when grading: Cell #14. Can’t compile the student’s code. Error: KeyError(‘never’,)

  • Checked the ex1 using any_word from word_to_vec_map shape

Does someone know how to handle this? Nothing seems to work so far

Thanks in advance!

If you are sure that everything runs correctly in the notebook, then the thing to look for is errors like referencing global variables within the body of your functions, instead of the formal parameters. In other words, if you pass one test, but fail another, it means your code is not general. It is “hard-coded” in some way.

Thank you again, @paulinpaloalto. I found the mistake when calculating the avg in another cell.