I have written the following code to define parameter but results error. please help
parameters = initialise_parameters(n_x, n_h, n_y)
A2, cache = forward_propagation(X, parameters)
cost = compute_cost(A2, Y, parameters)
grads = backward_propagation(parameters, cache, X, Y)
parameters = update_parameters(parameters, grads)
NameError Traceback (most recent call last)
in
----> 1 nn_model_test(nn_model)
~/work/release/W3A1/public_tests.py in nn_model_test(target)
261
262 t_X, t_Y = nn_model_test_case()
→ 263 parameters = target(t_X, t_Y, n_h, num_iterations=10000, print_cost=True)
264
265 print("W1 = " + str(parameters[“W1”]))
in nn_model(X, Y, n_h, num_iterations, print_cost)
22 # parameters = …
23 # YOUR CODE STARTS HERE
—> 24 parameters = initialise_parameters(n_x, n_h, n_y)
25
26 # YOUR CODE ENDS HERE
NameError: name ‘initialise_parameters’ is not defined