1.向量化 :利用numpy减少for循环的使用,减少代码量同时加快运算速度
2.python广播: eg:m*n的矩阵+1*n的矩阵 、矩阵的一行(列)相加成为一个行(列)向量
3.notes of nump vectory:
a=np.random.randn(5) 生成的是秩为1的数组,不建议这么写,建议下面两种写法
a=np.random.randn(5,1) 5*1的矩阵,一个列向量
a=np.random.randn(1,5) 1*5的矩阵,一个行向量
4.输入层是第0层,隐藏层称为第一层