W3_A1_Ex-3_initialize_parameters

@Juan_Olano thank you for your answer. I used "initialize_paramaters( ) " this function, but still it showing error “must be real number, not tuple”

It may be that the following lines have another issue. Lets do the same again: send me a direct message with your code and this will help me guide you better.

@Sumon_Mojumder ,

Have you finished implementing the entire function?

After initializing the parameters, you have more code to add. See below:

    #(≈ 4 lines of code)
    # Forward propagation. Inputs: "X, parameters". Outputs: "A2, cache".
    # A2, cache = ...
    
    # Cost function. Inputs: "A2, Y". Outputs: "cost".
    # cost = ...

    # Backpropagation. Inputs: "parameters, cache, X, Y". Outputs: "grads".
    # grads = ...

    # Gradient descent parameter update. Inputs: "parameters, grads". Outputs: "parameters".
    # parameters = ...

According to these instructions, you have to do forward propagation, then compute the costs, and then do a backward propagation. Finally you need to update the parameters. From what I see, you are not calling these functions.

Read carefully the instructions. For example the first one says “Forward propagation. Inputs: “X, parameters”. Outputs: “A2, cache”.”

So:

A2, cache = ???(X, parameters)

And so on.