I got error below result and error:
Cost after iteration 1: nan
Cost after first iteration: 0.693049735659989
Cost after iteration 1: nan
Cost after iteration 1: nan
Cost after iteration 1: nan
Error: Wrong output for variable W1.
Error: Wrong output for variable b1.
Error: Wrong output for variable W2.
Error: Wrong output for variable b2.
Cost after iteration 2: nan
Error: Wrong output for variable W1.
Error: Wrong output for variable b1.
Error: Wrong output for variable W2.
Error: Wrong output for variable b2.
2 Tests passed
2 Tests failed
AssertionError: Not all tests were passed for two_layer_model. Check your equations and avoid using global variables inside the function.
i was wondering if it is because i pass wrong parameters
-
for compute_cost(AL, Y): i use AL,cache = L_model_forward(X, parameters) to get AL and present AL, am i correct??
-
for update_parameters(parameters, grads, learning_rate): i use parameters directly present parameters, am i correct??