I have implemented the function one_hot_matrix correctly as my output produces the text “All Tests Passed” , however the next pre-written cell results in multitudes of errors, and the output of the pre-written cell print statement after gives an error name ‘new_y_test’ is not defined. Is there code I am missing in the graded portion or is the supplied code incorrect. This error is preventing me from completing the cost function as it utilizes the undefined new_y_train.
2.3 Exercise 3 image: