Hi, I am struggling to finish my assignment because, just after running:
new_y_test = y_test.map(one_hot_matrix)
new_y_train = y_train.map(one_hot_matrix)
I got a long error message (which I can provide), and then, after running:
print(next(iter(new_y_test)))
I get the message: NameError: name ‘new_y_test’ is not defined
I already updated my notebook and ran again,… but the problem remains.
Maybe my one_hot function is not ok?
one_hot = tf.reshape(tf.one_hot(label, depth,axis = 0),shape = (4,))
any idea of what is going on?
thks!