Len(parameters)//2 # number of layers in NN, how?

In assignment 1 of week 4, there is code block that states:

len(parameters)//2 # number of layers in NN

I don’t get how that makes sense.
Can someone explain.

There are two values in the parameters dictionary for each layer, right? W^{[l]} and b^{[l]}.

1 Like