#C1W4 Assignment1 Why is this error? without unpacking bias and weight?


In python, you’re not allowed to multiply a tuple and an integer.

Why are you multiplying the output of that function by (L - 1)? The function does the full calculation of the forward prop for one layer. All they meant by that expression in the “docstring” is that you have L - 1 hidden layers, all of which use ReLU, followed by the one output layer that uses sigmoid. There is no multiplication happening there.

1 Like