In [1]:
import numpy as np
In [2]:
# W1 is 4×2
np.random.seed(seed=123)
W1= np.random.rand(4,2)
b1 = # should be 1×4
x = np.array([0.4, 0.32])
In [ ]:
z1 =
a1 = 1/(1+np.exp(-z1))
In [ ]:
# W2 is ?
np.random.seed(seed=123)
W2 =
b2 =
In [ ]:
z2 =
a2 = 1/(1+np.exp(-z2)) # y
In [ ]:
# what is your conclusion?