Week 4:predict is not defined

NameError Traceback (most recent call last)
----> 1 predictions_train = predict(train_x, train_y, parameters)

NameError: name ‘predict’ is not defined

Hi @Amoghrao and welcome to the DL Specialization. Make sure that all of the previous cells have been executed. The predict(...) function does not appear to be in the current namespace. It is loaded in the very first cell of the notebookas part of the dnn_app_utils_v3 module.

1 Like