Model not working despite all tests passing

I’ve been working through the programming assessment of week 2 course 1. I’ve got all the tests to pass up until “5 - Merge all functions into a model”

this is what I’m getting:

AssertionError: Wrong values for d[‘w’].
[[ 0.28154433]
[-0.11519574]
[ 0.13142694]
[ 0.20526551]] != [[ 0.00194946]
[-0.0005046 ]
[ 0.00083111]
[ 0.00143207]]

I don’t understand why it’s not working despite all my individual functions passing their tests. The error must be in my implementation of the model function.

This is how I’m getting w (the variable which is throwing the error) earlier in the function

w, b = initialize_with_zeros(X_train.shape[0])
print(w)
#(≈ 1 line of code)
# Gradient descent 
# parameters, grads, costs = ...

parameters, grads, costs = optimize(w, b, X_train, Y_train)

# Retrieve parameters w and b from dictionary "parameters"
# w = ...
# b = ...

w = parameters["w"]
b = parameters["b"]

any help would be hugely appreciated

The optimize function takes more parameters than the ones you are showing in your code.

optimize(w, b, X, Y, 
         num_iterations=100, 
         learning_rate=0.009, print_cost=False)

ah thank you so much! worked instantly.

Those parameters are taken defaultly right?we need to specify them while calling also