课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP
1、以下哪一项是正确的?(检查所有适用的) (A,D,F,G)
A.  a 表示第二层的激活函数值向量。
B. X 是一个矩阵, 其中每一行都是一个训练示例。
C. a 表示第二训练样本在第十二层的激活函数值向量。
D. X 是一个矩阵, 其中每一列都是一个训练样本。
E. a 是第二层的第4个训练样本的激活函数输出值
F. a 表示第十二训练样本在第二层激活函数值向量。
G. a  是第二层第四个神经元的激活函数输出值
-----------------------------------------------------------------------------------------------------------------------
课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

-----------------------------------------------------------------------------------------------------------------------

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

-----------------------------------------------------------------------------------------------------------------------

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

-----------------------------------------------------------------------------------------------------------------------

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

import numpy as np
A=np.random.randn(4, 3)
B=np.sum(A, axis=1, keepdims=True) # axis=1时,按照行计算; axis=0时,按照列计算
print("A="+str(A))
print("B="+str(B)) result:
A=[[-0.02149271 -1.0911196 -0.63240592]
[-0.11458854 -0.18210595 0.82210656]
[ 0.39105364 -0.97201463 -0.71820102]
[ 0.30185741 -0.50767254 -0.73277816]]
B=[[-1.74501822]
[ 0.52541207]
[-1.29916201]
[-0.93859329]]

-----------------------------------------------------------------------------------------------------------------------

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

------------------------------------------------------------------------------------------------------------------

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

-------------------------------------------------------------------------------------------------------------------

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

-------------------------------------------------------------------------------------------------------------------

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

-------------------------------------------------------------------------------------------------------------------

课程一(Neural Networks and Deep Learning),第三周(Shallow neural networks)—— 2、Practice Questions-LMLPHP

-------------------------------------------------------------------------------------------------------------------

答案仅供参考

05-07 10:35