def feedforward(data_in, Ws, Bs):
    Z = []
    A = [data_in]
    for i in range((len(Ws) - 1)):
        z = (np.dot(Ws[i], A[(- 1)]) + Bs[i])
        a = relu(z, d=False)
        Z.append(z)
        A.append(a)
    z = (np.dot(Ws[(- 1)], A[(- 1)]) + Bs[(- 1)])
    Z.append(z)
    a = sigmoid(z)
    A.append(a)
    return (Z, A)
def feedforward(data_in, Ws, Bs):
    Z = []
    A = [data_in]
    for i in range((len(Ws) - 1)):
        z = (np.dot(Ws[i], A[(- 1)]) + Bs[i])
        a = relu(z, d=False)
        Z.append(z)
        A.append(a)
    z = (np.dot(Ws[(- 1)], A[(- 1)]) + Bs[(- 1)])
    Z.append(z)
    a = sigmoid(z)
    A.append(a)
    return (Z, A)