Compute_Cost_Test not defined: Programming Assignment: Week 2 practice lab:


Hi

I am working on the programming assignment. However today I am facing issues. What was working till yesterday is not working today. The notebook fails with error compute_cost_test and compute_gradient_test not defined.

Did you run the notebook from the beginning including the cell

(Edited to provide correct cell to run)

print ("sigmoid([ -1, 0, 1, 2]) = " + str(sigmoid(np.array([-1, 0, 1, 2]))))

# UNIT TESTS
from public_tests import *
sigmoid_test(sigmoid)

which will load the definition for compute_cost_test()

Hello,

Please uncomment this line

Screenshot from 2022-11-02 10-09-55

Cheers,
Raymond