When tested it in jupyer it said ‘All tests passed’ but when submit it,the error occured as shows.
I have tried it again and again but the error still occur.
As shows,It seems to be an error since I have added try…except to locate where the error occurs,and I have resized b to (n_y,1) in the except code but error still happens
I got same error, because in sentence_to_avg, I have initialized the avg as " avg = 0 ",
which is able to pass the test, but will got error when submitting.
After I followed the comments : " Initialize the average word vector, should have the same shape as your word vectors. ".
I use the np.zeros, and the word to vec with the “any_word” to initial the avg
then, I got the pass