W2_A2_Ex-7_Predict function undefined

Logistic Regression with a Neural Network mindset

Programming assignment

Exercise 7 - predict

i am not able to run my code as it is not able to recognise the graded function…i am getting error :


NameError Traceback (most recent call last)
in
2 b = -0.3
3 X = np.array([[1., -1.1, -3.2],[1.2, 2., 0.1]])
----> 4 print ("predictions = " + str(predict(w, b, X)))
5
6 predict_test(predict)

NameError: name ‘predict’ is not defined

this is because predict function is not being shown as a code block in my assignment . dont know why that is happening.

Hi, @Manan_Khandelwal. Welcome to the specialization.

Python can’t find your predict function because it is not in the current “namespace.” Be sure that you have run all the prior cells. Especially–in this case–the one containing your completed predict function.