...
dZ = A - Y
---
---
---
...
---
The same as db
This part could be written as:
最后我们得到:
for iter in range(1000)
Z = nt.dot(w.T, X) +b
A = sigma(Z)
dZ = A - Y, dw = 1/m * X* dZ.T, db
w = w-alpha * dw
b = b - alpha * db
...
dZ = A - Y
---
---
---
...
---
The same as db
This part could be written as:
最后我们得到:
for iter in range(1000)
Z = nt.dot(w.T, X) +b
A = sigma(Z)
dZ = A - Y, dw = 1/m * X* dZ.T, db
w = w-alpha * dw
b = b - alpha * db