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

I recommend you:

  1. Look at your code in the sentences_to_indices() function.
  2. Look at your model() function, and see if you are calling sentence_to_avg() correctly.

When you get a key error, it means somewhere you’re using a specific word from the notebook, which makes the grader break (because it uses a different set of data).

1 Like