Week 3, Tensorflow_introduction BUG

       new_y_test = y_test.map(one_hot_matrix)
       new_y_train = y_train.map(one_hot_matrix)

my this line is not compiling before that all the code snippet was running.

After this line will also not run if this line won’t run.
Thanks!

That probably means there is something wrong with your one_hot_matrix implementation. Or maybe it’s something as simple as that you didn’t run some of the previous cells in the notebook. What is the error that you get? Have you read the documentation about what the “map” method does?

The first thing you can try is: “Kernel → Restart and Clear Output” then “Cell → Run All Above”. Then run that cell. Does that change the result?