hubort
July 28, 2021, 4:35pm
1
Hey there,
I am struggling with this exercise, as I run into the same error over and over again:
NameError Traceback (most recent call last)
in
17 print(“\033[92mAll test passed”)
18
—> 19 compute_cost_test(compute_cost, new_y_train )
NameError: name ‘new_y_train’ is not defined
There is no variable new_y_train I could modify?
The code I’m using is the following:
[Removed solution code]
Thanks in advance!
nramon
July 28, 2021, 6:05pm
2
Hi, @hubort .
new_y_train
is a global variable defined in exercise 3 (right after one_hot_matrix_test
). Make sure you ran that cell.
If it’s not there, you may have to update your notebook.
Good luck
2 Likes
hubort
July 28, 2021, 9:30pm
3
Completely right, I oversaw it, but running it results in the following error:
(see hastebin, for it is 105 lines long)
https://hastebin.com/upatekazum.sql
hubort
July 29, 2021, 8:51am
6
:’-)
It’s always so obvious, it hurts.
1 Like