Hello I don’t know why am I getting this error though this is not editable and only need to check if my implementation was correct by running the following test code :
NameError Traceback (most recent call last)
in
3 initial_b = 1
4
----> 5 cost = compute_cost(x_train, y_train, initial_w, initial_b)
6 print(type(cost))
7 print(f’Cost at initial w: {cost:.3f}')
NameError: name ‘x_train’ is not defined