W2_A2_Ex-8_Train_set_x_not defined

My tests are passing but then when I run cell 71 of exercise 8 I get the following? Not sure what is it that missing here.

Hi @Agna_Desai,

Make sure all the cells from the top to this point are executed sequentially.


Thank you you are right. I forgot to run one of the cells. I am getting this error logistic_regression_model is not defined in exercise model 8. Do you know what the issue in this case? This time I did run all command to make sure all the cells are executed.

After completing Ex. 8, we have this cell which defines the logistic_regression_model:

Make sure you:

  1. Don’t change anything in it
  2. Run this cell too
  3. Passed all the above tests.